nofxx / georuby

This is intended as a holder for geometric data. The data model roughly follows the OGC.
MIT License
245 stars 55 forks source link

Fix for DBF column names where downcase is different from underscore #10

Closed schleyfox closed 13 years ago

schleyfox commented 13 years ago

The Dbf::Record monkey patch uses [] to access the prettified name in the attributes hash (assumed to be the column name downcased). The DBF gem actually underscores it. This breaks for some column names (e.g., "ZCTA5CE".underscore == "zcta5_ce"). Furthermore, it is unnecessary as the attributes hash also contains the original column name: https://github.com/infused/dbf/blob/master/lib/dbf/attributes.rb#L2-5.

nofxx commented 13 years ago

Thanks man, going to release a new version.