odc.geo.geom.clip_lon180

odc.geo.geom.clip_lon180(geom, tol=1e-06)[source]

Tweak Geometry in the vicinity of longitude discontinuity.

For every point within tol degress of lon=180|-180, clip to either lon=180 or lon=-180. Which one is decided based on where the majority of other points lie.

Note

This will only do the “right thing” for “chopped” geometries. Expectation is that all the points are to one side of lon=180 line, but some might have moved just beyond due to numeric tolerance issues.

Return type

Geometry