georuby icon indicating copy to clipboard operation
georuby copied to clipboard

Empty attribute table

Open glasbergenm opened this issue 6 years ago • 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)

glasbergenm avatar Feb 01 '19 09:02 glasbergenm