st_compatibalize | R Documentation |
makes sf1 compatible with sf2 by projecting into the projection of 2 and ensuring that the geometry columns are the same name.
st_compatibalize(sf1, sf2)
sf1 |
sf data.frame |
sf2 |
sf data.frame |
sf1 transformed and renamed to be compatible with sf2
x <- sf::read_sf(system.file("extdata/new_hope.gpkg", package = "hydroloom"))
one <- dplyr::select(x)
two <- sf::st_transform(one, 5070)
attr(one, "sf_column") <- "geotest"
names(one)[names(one) == "geom"] <- "geotest"
st_compatibalize(one, two)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.