Get point values from the getMap
getISO3(
pp,
crs_pp = 4326,
col = "ISO3",
resol = "low",
coords = c("LONG", "LAT"),
ask = FALSE
)
Simple Feature Points or coordinate matrix/data.frame
The CRS of the points
Which column/s should be returned
The search resolution. The options are "coarse","low",
"less islands","li","high". For "high" you need to install the
package rworldxtra
The column names of the point matrix
A boolean, to ask which columns can be returned
A character vector
Other Helper Functions:
dup_coords()
,
getDEM()
,
get_grids()
,
grid_area()
,
hexa_area()
,
isSpatial()
,
permutations()
,
readintegerSel()
,
readinteger()
,
splitAt()
,
windata_format()
# NOT RUN {
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)
# }
Run the code above in your browser using DataLab