powered by
Normalize the longitude of geometries, that is move geometries to a bounding box of -180 to 180 degrees
# S4 method for SpatVector normalize.longitude(x)
SpatVector
rotate for SpatRaster
p <- vect("POLYGON ((120 10, 230 75, 230 -75, 120 10))") normalize.longitude(p)
Run the code above in your browser using DataLab