2

If I need to generate a polygon that crosses the anti-meridian, does it exists a Python library that treat such cases (partitioning such polygon and generate a multipart polygon)?

3

I would suggest looking into Xarray here is a thread xarray slicing across the antimeridian that covers a use for perhaps what you are looking for.

This thread isn't answered but provides another example Shapely polygons crossing the antimeridian

Here is a blog entry How to correct a linestring for the antimeridian (180 longitude) to provide additional context.

enter image description here

  • Nice suggestions. I've found another question on the same line using gdal.VectorTranslate. Have you tried to use this method? (I'm having issues to install gdal 2.1.x on my mac, so I haven't tested) – Ricardo Barros Lourenço Sep 12 '17 at 18:42
  • I haven't had a chance to try the line you suggested. – whyzar Sep 12 '17 at 18:44
1

In a context of GeoJSON files (in which I was inserted) I've preferred to use a solution that uses gdal.VectorTranslate method, because it provides compliance to the RFC 7946 standard, that also provides a rationale for antimeridian cases.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.