1

I found https://github.com/infused/dbf is only for reading, is there some ready-made gem that can help me to modify the record of dbf file? I can modify the file by destop software like Gtkdbfeditor, but I would like to do it in Ruby. Thanks.

Zernel
  • 1,487
  • 2
  • 15
  • 27

2 Answers2

2

You can use this library instead:

https://github.com/spatialnetworks/shp-ruby

victor sosa
  • 899
  • 13
  • 27
0

I'm not aware of a direct way (so someone else might have a better answer) but I believe there are ODBC connnectors you can use... here's an old SO Post on this

So if you can install an ODBC driver for your dbs that might be a way forward.

Community
  • 1
  • 1
SteveTurczyn
  • 36,057
  • 6
  • 41
  • 53
  • yep, ODBC is an option for that, but [shp-ruby](https://github.com/spatialnetworks/shp-ruby) is a better choice for me, thanks for your answer. – Zernel Sep 12 '14 at 08:25
  • Not a problem... I myself am glad to have learned about shp-ruby ! Cheers Steve – SteveTurczyn Sep 12 '14 at 08:27