Skip to main content
Question

split polygons at dateline

  • April 19, 2017
  • 3 replies
  • 95 views

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?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

jdh
Contributor
Forum|alt.badge.img+40
  • 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+26
  • 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+40
  • 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:

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.