Description Usage Arguments Author(s) Examples
View source: R/spatial_sync_vector.R
Matches a vector's projection to another vector or raster object's projection.
1 | 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)
1 2 3 4 5 6 7 8 9 10 11 12 | 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.