Skip to main content
Question

split polygons at dateline


Forum|alt.badge.img

Hello,

 

I have a polygon that crosses the dateline.

 

I would like to split it into two at the dateline, so I even won't need a dateline fix (e.g.https://knowledge.safe.com/articles/34013/dateline-problem.html). My goal is a longitude within -180 and 180 and a correct display on the map using LL-WGS84.

 

Is this possible? What transformers do I need to use?

3 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • April 19, 2017

One option would be to use the clipper with a clipper feature being a box -90, 90,-180,180. Make sure create aggregates is set to No, and you want the features from both the Inside and Outside ports.


erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • April 19, 2017

Another way would be to use the InterSector to Cut the area and an AreaBuilder to restore the 2 polygons:

With this result:


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • April 19, 2017
erik_jan wrote:

Another way would be to use the InterSector to Cut the area and an AreaBuilder to restore the 2 polygons:

With this result:

With the caveat that they must be simple polygon(s) with no holes or slivers, and you'll need to transfer the attributes if required.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings