normalize.longitude {terra}R Documentation

normalize vector data that crosses the dateline

Description

Normalize the longitude of geometries, that is move geometries to a bounding box of -180 to 180 degrees

Usage

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

Arguments

x

SpatVector

Value

SpatVector

See Also

rotate for SpatRaster

Examples

p <- vect("POLYGON ((120 10, 230 75, 230 -75, 120 10))")
normalize.longitude(p)

[Package terra version 1.6-33 Index]