Learn R Programming

windfarmGA (version 2.3.0)

getISO3: getISO3

Description

Get point values from the getMap

Usage

getISO3(
  pp,
  crs_pp = 4326,
  col = "ISO3",
  resol = "low",
  coords = c("LONG", "LAT"),
  ask = FALSE
)

Arguments

pp

SpatialPoints or matrix

crs_pp

The CRS of the points

col

Which column/s should be returned

resol

The search resolution if high accuracy is needed

coords

The column names of the point matrix

ask

A boolean, to ask which columns can be returned

Value

A character vector

See Also

Other Helper Functions: dup_coords(), getDEM(), get_grids(), grid_area(), hexa_area(), isSpatial(), permutations(), readintegerSel(), readinteger(), splitAt(), tess2SPdf(), windata_format()

Examples

Run this code
# NOT RUN {
points = cbind(c(4488182.26267016, 4488852.91748256), 
c(2667398.93118627, 2667398.93118627))
getISO3(pp = points, ask = TRUE)
getISO3(pp = points, 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