paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
910 stars 103 forks source link

Support unmarshalling name in featureCollection #42

Closed Sanjay126 closed 3 years ago

Sanjay126 commented 4 years ago

Please add a name field in FeatureCollection struct so that we can use that data as well.

paulmach commented 4 years ago

Is the part of the geojson spec? I don't see it https://tools.ietf.org/html/rfc7946

I've been reluctant with adding other properties because it seems everyone uses their own. I'm not sure how to handle this cleanly in go.

paulmach commented 3 years ago

I have a PR to address this by adding an ExtraMembers map to the feature collection where all these extras will be unmarshalled to. See https://github.com/paulmach/orb/pull/56 for all the details.

paulmach commented 3 years ago

I hope this if finally solved by https://github.com/paulmach/orb/pull/56 and is in the recently tagged v0.2