Unity-GeoJSONObject icon indicating copy to clipboard operation
Unity-GeoJSONObject copied to clipboard

Problem with Multipolygones

Open kfhenning opened this issue 6 years ago • 4 comments

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

kfhenning avatar Oct 10 '18 15:10 kfhenning

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

lvictorino avatar Feb 08 '19 09:02 lvictorino

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.

EgilSandfeld avatar Aug 16 '19 09:08 EgilSandfeld

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

Torantulino avatar Jul 14 '20 15:07 Torantulino

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

wilcotomassen avatar Feb 09 '21 15:02 wilcotomassen