read_fgd_dem | R Documentation |
The JPGIS (GML) format file provided by FGD as input, the digital elevation models in the file are read as a data.frame or spatial object (raster, stars or terra). Supporting FGD Version 4.1 (2016/10/31)
read_fgd_dem(file, resolution = c(5, 10), return_class)
file |
Path to XML file |
resolution |
the number of dem mesh size resolution: 5m or 10m |
return_class |
one of return object class: 'data.table' for faster than data.frame, 'data.frame', 'raster', 'stars' or 'terra' |
A tibble (data.frame), raster, stars or terra
https://fgd.gsi.go.jp/download/ref_dem.html
fgd_5dem <- system.file("extdata/FG-GML-0000-00-00-DEM5A-dummy.xml", package = "fgdr") read_fgd_dem(fgd_5dem, resolution = 5, return_class = "data.table") read_fgd_dem(fgd_5dem, resolution = 5, return_class = "data.frame") # return as raster read_fgd_dem(fgd_5dem, resolution = 5, return_class = "raster") # return as stars fgd_10dem <- system.file("extdata/FG-GML-0000-10-dem10b-dummy.xml", package = "fgdr") read_fgd_dem(fgd_10dem, resolution = 10, return_class = "stars")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.