Unity-GeoJSONObject
Unity-GeoJSONObject copied to clipboard
Problem with Multipolygones
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
Hey @kfhenning, I came to the same conclusion about ArrayArrayArrayGeometryObject
. It's definitely missing. Did you make a pull request?
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.
Ran into this problem myself so I've given it a shot!
#4 from @Torantulino solved the same issue with multipolygons I had, thanks!