Learn R Programming

mapmisc (version 2.1.0)

crsMerc: Some coordinate reference systems and bounding boxes

Description

Defines CRS's for the several map projections.

Usage

crsMerc 
crsLL 
crsCanada 
extentMerc
bboxLLsafe
bboxLL

Arguments

Value

objects of class crs or numeric vectors.

Format

crsMerc spherical Mercator projection used by web mapping services, epsg:3857 crsLL long-lat, epsg:4326 crsCanada customized oblique mercator for Canada bboxLL polygon of bounding box of long-lat, -180 to 180, -90 to 90 bboxLLsafe as bboxLL, but slightly away from the edges extentMerc extent of spherical mercator projections

Details

these objects are used internally and may be of interest to the user

References

https://en.wikipedia.org/wiki/Web_Mercator, https://spatialreference.org/ref/epsg/4326/

See Also

Examples

Run this code
terra::crs(crsMerc, proj=TRUE)
terra::crs(crsLL, proj=TRUE)
terra::crs(crsCanada, proj=TRUE)
terra::ext(extentMerc)

bboxLLsafe = terra::unwrap(bboxLLsafe)
plot(bboxLLsafe)
plot(terra::project(bboxLLsafe, crsMerc))

Run the code above in your browser using DataLab