georuby
georuby copied to clipboard
Empty attribute table
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)