-
Notifications
You must be signed in to change notification settings - Fork 38
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
GeometryCollection.to_geo() returns only the last geometry #11
Comments
|
Thanks for the reply!
In that case it would be nice to have an error instead of just writing wrong data. We spent some time chasing down this. Is this documented anywhere?
That seems to work, yes. |
I hit this while working on #19 I updated the title to clarify it's about the target (.to_geo) not the source (WKB or WKT) |
I've been contemplating fixing this a few times. We'd need a stack of geometries in |
A geometry stack is acceptable (and with |
Hi @audunska - is this something you're actively working on? If so, I'm happy to wait a bit longer, otherwise I might take a pass at it. |
I am not working on it right now, so please go ahead! |
We hit upon this by passing geometries from postgres using geozero: When a GeometryCollection is stored as a postgis Geometry field in the database, and fetched through geozero using the Decode impl, only the last geometry was returned. I'd expect the full collection to be returned instead.
Reproducing repository:
https://github.com/audunska/geozero-bug
The text was updated successfully, but these errors were encountered: