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
toldegress oflon=180|-180, clip to eitherlon=180orlon=-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=180line, but some might have moved just beyond due to numeric tolerance issues.- Return type: