GeoJSON.jl icon indicating copy to clipboard operation
GeoJSON.jl copied to clipboard

Feature properties are kinda broken

Open rafaqz opened this issue 2 years ago • 1 comments

help?> GI.properties
  GeoInterface.properties(feat) => properties

  Retrieve the properties of feat. This can be any Iterable that behaves like an AbstractRow. Ensures
  backwards compatibility with GeoInterface version 0.

But here we return a Dict which doesn't have getproperty like an AbstractRow

However you can call getproperty on the feature itself as a workaround, its' just confusing - and we cant standardise code accross feature types.

rafaqz avatar May 01 '23 18:05 rafaqz

Maybe we need a wrapper for Dict that defines getproperty, or a a different kind of dict. Or... we define a NamedTuple exactly frome the pass that gets the column names so its type stable.

rafaqz avatar May 03 '23 07:05 rafaqz