-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WKB is missing collections support #64
Comments
Thanks for the report! go-geom currently does not support geometry collections. The reason is that they behave very differently to every other type of geometry, and I haven't found a good way to implement them within the constraints of Go's type system. All ideas for how geometry collections could be implemented are welcome :) |
It seems to me |
Agree. A (slightly) tricky aspect is: should geometry collections themselves implement the The last time I read the OGC spec, I didn't spot anything that excluded geometry collections from containing nested geometry collections. So, this means that geometry collections have to implement the An alternative would be to implement geometry collections as a special case of I suspect that the second approach is the right one. I'll try typing up some code to see how it looks. Feel free to propose something too :) |
I was thinking of the special-case Also, right now, i'm just unmarshaling for marshaling to geojson so i don't care about any other operations on the collection. |
I put some initial work-in-progress code here: |
Very nice. I commented on |
This WKB
is
But fails with
The text was updated successfully, but these errors were encountered: