[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jts-dev] Recutting pole-wrapping polygons
|
Yeah I thought exactly this far into it. I'm sure I could figure it out with some time but in this case someone else wants to volunteer their time to Spatial4j to do it so I'm curious if I could point him/her to a known solution.
My best guess about this is to cut the polygon into two pieces via a meridian line running from [-180, -90] thru the N pole [0, 90] back down to the S pole [0, -90]. But you can't do this as a planar geometric operation, because the "polygon" is not a valid 2D geometry. However, it should be possible to do this by finding the segments which cross the splitting line and constructing the intersection points.
If the polygon crosses the splitting meridian more than twice then it's harder, of course...
_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/jts-dev
--
Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker