I am struggling to find a systematic way to convert coordinates and geometries to km.
Let's say I have a .shp
file, which I read with st_read
. I want to draw a circle of radius 10 kms around a city. I know the coordinates of the city in latitude and longitude, so I can convert to km with:
y = 111.2 * latitude
x = 111.2 * longitude * cos(pi / 130* latitude)
And then define a circle centered in x,y
. Now I can easily draw the circle with plot.owin {spatstat.geom}
, but, how can I plot is onto the geometry of the .shp
file? Can I use st_crs
to set the coordinates of the circle to the reference system of the original map (and how)?