GeoJSON.jl
GeoJSON.jl copied to clipboard
Feature properties are kinda broken
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.
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.