wfsconvert | R Documentation |
The function convert_bbox
converts (the coordinates of) a bbox from one CRS to another
The function convert_points
converts a set of points (in vector or matrix form) from one CRS to another
convert_bbox(coords, crs_in, crs_out) convert_points(coords, crs_in, crs_out, out_matrix = T, keep_names = T)
coords |
Numeric vector with four elements indicating the bounding box (for |
crs_in |
Character string with the name of the input crs (e.g. |
crs_out |
Character string with the name of the output crs (e.g. |
out_matrix |
Logical indicating that the output of |
keep_names |
Logical indicating that the output of |
The convert_bbox
returns a numeric vector of class bbox
and the convert_points
returns a numeric matrix
with two columns (if outmatrix == FALSE
a vector is returned)
bbox_28992 <- c(119103, 480726, 119160, 481078) bbox_4326 <- convert_bbox(bbox_28992,"EPSG:28992","EPSG:4326") points_4326 <- convert_points(bbox_28992,"EPSG:28992","EPSG:4326")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.