Skip to content
Prev 28486 / 29559 Next

st_segmentize across east and west hemispheres

You may want to look into st_wrap_dateline(), which cuts LINESTRING and 
POLYGON geometries in multi-part equivalents where parts do not cross 
the antimeridian.

As in:

seg2 <- st_segmentize(st_wrap_dateline(sf), units::set_units(1000, km))
On 29/12/2020 00:24, Amanda Rehbein wrote: