How to deal with a problem of intersection of geometry shape (linestring, polygon) and 180 meridian?
I have polygons distributed all over the Earth globe, some of them intersecting 180 meridian.
The problem is, to define a polygon being over the 180 meridian, I have to split it into two. I couldn't find a way to define a polygon from let say +170 to -170 meridian.
What I already tried - shift the -180/+180 system to 0/+360 system, which does not solves the problem, it just moves it to a different position of the globe.
I can split the polygons which are placed over 180 meridian but I would like to avoid this.
My goal is to check intersection of linestrings and polygons without limitation of splitting the globe. Is there any way to define geometric shapes (polygons, linestrings) without the limit of splitting them if they intersect 180 meridian?
geometry
that starts at longitude +179 and extends to longitude +181, but if you have other data from -180 to -179, they won't overlap (unless you represent it (and everything else) twice, once on either side of the dateline). There are index consequences to having a geometry that spans the globe in two parts, but there are also consequences for storing the parts as separate features. In the end, this becomes a personal preference as to how to model it.