I have two sf objects, which when plotting are slightly misaligned.
While initially the two objects have different CRS:
- the first has: WGS 84
- the second has: MGI / Austria GK East
I proceed, as usual with:
sf2 <- st_transform(sf2, crs = st_crs(sf1))
to align the CRS. However still, when plotting this:
ggplot()
+ geom_sf(sf1)
+ geom_sf(sf2, color = "green", fill = "transparent")
I get the attached output. Any ideas what I am doing wrong?
Datasources are:
dput()
on both subsets, and add the results to a codeblock in your question. The results will look something likestructure(list(...))
.