Description Usage Arguments Value See Also Examples
Get a DEM raster for a country based on ISO3 code
1 |
polygon |
A Spatial / SimpleFeature Polygon to crop the DEM |
ISO3 |
The ISO3 code of the country |
clip |
boolean, indicating if polygon should be cropped. Default is TRUE |
A list with the DEM raster, and a Simple Feature Polygon or NULL if no polygon is given
Other Helper Functions:
dup_coords()
,
getISO3()
,
get_grids()
,
grid_area()
,
hexa_area()
,
isSpatial()
,
permutations()
,
readintegerSel()
,
readinteger()
,
splitAt()
,
windata_format()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
library(sf)
library(raster)
Polygon1 <- sf::st_as_sf(sf::st_sfc(
sf::st_polygon(list(cbind(
c(4496482, 4496482, 4499991, 4499991, 4496482),
c(2666272, 2669343, 2669343, 2666272, 2666272)))),
crs = 3035
))
DEM_meter <- getDEM(Polygon1)
plot(DEM_meter[[1]])
plot(DEM_meter[[2]], add=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.