spatial_sync_vector {spatial.tools} | R Documentation |
Matches a vector's projection to another vector or raster object's projection.
spatial_sync_vector(unsynced, reference, verbose = TRUE)
unsynced |
The vector to be projected. |
reference |
A raster or vector object who's projection the unsynced will be matched to. |
verbose |
Logical. Verbose logging? |
Jonathan A. Greenberg (spatial.tools@estarcion.net)
library("rgdal") library("raster") tahoe_highrez_training_points_utm <- readOGR( dsn=system.file("external", package="spatial.tools"), layer="tahoe_highrez_training_points_utm") print(projection(tahoe_highrez_training_points_utm)) tahoe_lidar_bareearth <- raster(system.file("external/tahoe_lidar_bareearth.tif", package="spatial.tools")) print(projection(tahoe_lidar_bareearth)) tahoe_highrez_training_points_utm_synced <- spatial_sync_vector(tahoe_highrez_training_points_utm,tahoe_lidar_bareearth) print(projection(tahoe_highrez_training_points_utm_synced))