Handle transformation of various inla objects according to coordinate reference systems of sp::CRS or INLA::inla.CRS class.
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, ...)
The object that should be transformed from it's current CRS to a new CRS
Potential additional arguments
The source sp::CRS or inla.CRS object
The target sp::CRS or inla.CRS object
Default is FALSE. Setting to TRUE allows objects with no CRS information to be passed through without transformation.
The target sp::CRS or inla.CRS object
The default method handles low level transformation of raw coordinates.
fm_CRS()