8 Actions

How do I split polygons that cross the dateline?Even Rouault on the gdal-dev mailing list suggests that the topology exceptions come from an outdated version of the GEOS library. I'm running the latest installed via apt., but can grab the source. Even says no -wrapdateline is needed because all coordinates are between -180 and 180. That helps because I now know -wrapdateline is not my answer, but what is? Summary, if a single polygon contains coordinates that cross the -180/180 boundary, then MapKit on IOS paints incorrectly. It thinks the polygon is big, wrapping/stretching it around the Earth, instead of allowing it to cross the line.

How do I split polygons that cross the dateline?Let's say the polygon is a triangle and the dateline intersects it. Then the triangle will get wrapped all the way around the world, so instead of a little piece of triangle to the left and a little piece of triangle to the right of the dateline, for example, we'll have some triangle to the left and as soon as it hits the dateline, it won't cross but start highlighting back the other way until it gets to the point of interest on the other side of the dateline. I simply wish to split up my polygons so they don't do this.