[R-sig-Geo] Not perfect match between the bounding box for a EPSG when projected (st_bbox from sf)

Manuel Spínola m@p|no|@10 @end|ng |rom gm@||@com
Thu Mar 25 21:55:34 CET 2021


Dear list members,

I am working with the epsg 5367.

The information for this epsg according to this website (
https://epsg.io/5367) is:

WGS84 bounds:
-90.45 2.15
-81.43 11.77

Projected bounds:
-218963.01 239235.14
780173.56 1302793.77

When I create a box with st_bbox from the package sf and transform the
object I don't get the same bounding box that I was expecting.  Is it a
fair expectation?

b <- st_bbox(c(xmin = -90.45, xmax = -81.43, ymax = 11.77, ymin = 2.15),
crs = st_crs(4326))

b <- st_as_sfc(b)

b_5367 <- st_transform(b, crs = 5367)

b_5367

Geometry set for 1 feature
Geometry type: POLYGON
Dimension:     XY
Bounding box:  xmin: -218962 ymin: 237951.9 xmax: 785959.7 ymax: 1309622
Projected CRS: CR05 / CRTM05POLYGON ((-218962 239233.5, 785959.7 237951.9, ...



-- 
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola using una.cr <mspinola using una.ac.cr>
mspinola10 using gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list