I have a lots of existing data in WGS-1984 (too much to manually edit). I need to split these lines and polygons by the international date line.
More projection information: GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Sample Coordinates: ([170, 0], [-170, 0], [-170, 10], [170, 10], [170, 0])
Does anyone have any python code to do this?
For regular polygons like this square it would be easy to detect if the vertical line crossing -180 (anti-meridian), but most polygons aren't nice squares. So if I could give a set of points and detect and split the polygon into a multipart polygon would be what I'm trying to do.