Learn R Programming

inlabru (version 2.7.0)

fm_spTransform: Handle transformation of various inla objects according to coordinate reference systems of sp::CRS or INLA::inla.CRS class.

Description

Handle transformation of various inla objects according to coordinate reference systems of sp::CRS or INLA::inla.CRS class.

Usage

fm_spTransform(x, ...)

# S3 method for default fm_spTransform(x, crs0, crs1, passthrough = FALSE, ...)

# S3 method for SpatialPoints fm_spTransform(x, CRSobj, passthrough = FALSE, ...)

# S3 method for SpatialPointsDataFrame fm_spTransform(x, CRSobj, passthrough = FALSE, ...)

# S3 method for inla.mesh.lattice fm_spTransform(x, CRSobj, passthrough = FALSE, ...)

# S3 method for inla.mesh.segment fm_spTransform(x, CRSobj, passthrough = FALSE, ...)

# S3 method for inla.mesh fm_spTransform(x, CRSobj, passthrough = FALSE, ...)

Arguments

x

The object that should be transformed from it's current CRS to a new CRS

...

Potential additional arguments

crs0

The source sp::CRS or inla.CRS object

crs1

The target sp::CRS or inla.CRS object

passthrough

Default is FALSE. Setting to TRUE allows objects with no CRS information to be passed through without transformation.

CRSobj

The target sp::CRS or inla.CRS object

Details

The default method handles low level transformation of raw coordinates.

See Also

fm_CRS()