Learn R Programming

mapmixture (version 1.2.0)

transform_bbox: Transform Bounding Box Coordinates

Description

Internal function used to transform latitude and longitude coordinates to a target coordinate reference system.

Usage

transform_bbox(bbox, CRS)

Value

A named numeric vector.

Arguments

bbox

named numeric vector of length four, with xmin, xmax, ymin and ymax values.

CRS

numeric value representing an ESPG.

Examples

Run this code
bbox <- c(xmin = -3.70, xmax = 13.40, ymin = 40.42, ymax = 52.52)
transform_bbox(bbox, 3035)

Run the code above in your browser using DataLab