Get point values from the getMap
Usage
getISO3(
pp,
crs_pp = 4326,
col = "ISO3",
resol = "low",
coords = c("LONG", "LAT"),
ask = FALSE
)Arguments
- pp
Simple Feature Points or coordinate matrix/data.frame
- crs_pp
The CRS of the points
- col
Which column/s should be returned
- resol
The search resolution. The options are "coarse","low", "less islands","li","high". For "high" you need to install the package
rworldxtra- coords
The column names of the point matrix
- ask
A boolean, to ask which columns can be returned
See also
Other Helper Functions:
dup_coords(),
getDEM(),
get_grids(),
grid_area(),
hexa_area(),
isSpatial(),
permutations(),
readintegerSel(),
readinteger(),
splitAt(),
windata_format()
Examples
if (FALSE) {
library(sf)
points = cbind(c(4488182.26267016, 4488852.91748256),
c(2667398.93118627, 2667398.93118627))
getISO3(pp = points, ask = TRUE, crs_pp = 3035)
points <- as.data.frame(points)
colnames(points) <- c("x","y")
points <- st_as_sf(points, coords = c("x","y"))
st_crs(points) <- 3035
getISO3(pp = points, crs_pp = 3035)
}