normalize.longitude function

normalize vector data that crosses the dateline

normalize vector data that crosses the dateline

Normalize the longitude of geometries, move them if they are outside of the -180 to 180 degrees range. methods

## S4 method for signature 'SpatVector' normalize.longitude(x)

Arguments

  • x: SpatVector

Returns

SpatVector

See Also

rotate for SpatRaster

Examples

p <- vect("POLYGON ((120 10, 230 75, 230 -75, 120 10))") normalize.longitude(p)
  • Maintainer: Robert J. Hijmans
  • License: GPL (>= 3)
  • Last published: 2025-02-26