Skip to content
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

Problem with Multipolygones #3

Open
kfhenning opened this issue Oct 10, 2018 · 4 comments · May be fixed by #4
Open

Problem with Multipolygones #3

kfhenning opened this issue Oct 10, 2018 · 4 comments · May be fixed by #4

Comments

@kfhenning
Copy link

Hey Time,
nice library and really easy to use! Thanks!
However, I have a problem parsing multipolygones. The coordinates are not parsed and it returns always coordinates[0] = (0,0).
I've tried to parse the example from https://tools.ietf.org/html/rfc7946#section-3.1.7 (p. 10).
I looked through the code and it seems that there is missing an ArrayArrayArrayGeometryObject parser as Polygon and Multipolygon are treated equaly. Or did I get something wrong?

Thanks!
Best regards,
Kai

@lvictorino
Copy link

lvictorino commented Feb 8, 2019

Hey @kfhenning, I came to the same conclusion about ArrayArrayArrayGeometryObject. It's definitely missing. Did you make a pull request?

@EgilSandfeld
Copy link

Yes I have the same issue, where multipolygon coordinates end up being 0,0. It needs to be able to parse the sub-arrays for multi polygons, instead of treating the "coordinates" as final lat/lngs.

@Torantulino
Copy link

Ran into this problem myself so I've given it a shot!

@wilcotomassen
Copy link

#4 from @Torantulino solved the same issue with multipolygons I had, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants