nofxx/georuby

Empty attribute table

glasbergenm opened this issue · 0 comments

The code

` require 'geo_ruby/shp'

GeoRuby::Shp4r::ShpFile.open(shpfile) do |shp|
shp.each do |shape|
geom = shape.geometry #a GeoRuby SimpleFeature
att_data = shape.data #a Hash
shp.fields.each do |field|
puts att_data[field.name]
end
end
end`

Does seem to get the geometry nicely, but the att_data is completely empty (nil values all over)