ahn_point | R Documentation |
Get elevation of specific point location.
Requires the X and Y coordinates as input. AHN data is obtained from the AHN in the available resolutions. Default resolution is always the highest resolution (smallest number).
Available for the Digital Surface Model (DSM) and Digital Terrain Model (DTM).
You can download the AHN data using the WCS method (default, sheets.method = FALSE) returning a GeoTIFF format. The sheets method (sheets.method = TRUE) returns a regular raster GeoTIFF output file that is extracted from the PDOK sheets. The WCS method is recommended if only a few AHN elevation points need to be extracted. The sheets method always requires more data to be downloaded to the client but may be more efficient if many elevations need to be retrieved from a small area. Choosing your method depends on speed and your desired output format. See documentation for all available parameters.
ahn_point(
name = "AHNelevation",
X,
Y,
AHN = "AHN",
dem,
resolution,
output.dir,
LONLAT = FALSE,
extract.method = "simple",
decimals = 2,
sheets.method = FALSE,
sheets.dir,
sheets.keep = TRUE
)
name |
Optional. Give a name of the specified area. This name will be used in the output file names. |
X |
Required. X coordinate in RD New or WGS84 (LON). |
Y |
Required. Y coordinate in RD New or WGS84 (LAT). |
AHN |
Default 'AHN'. 'AHN' This is the latest full version made available by PDOK through their OGC Web services. Choose between 'AHN4', 'AHN3', 'AHN2', or 'AHN1'. |
dem |
Default 'DSM'. Choose type of Digital Elevation Model. 'DSM' or 'DTM'. AHN1 only has 'DTM'. |
resolution |
Default 0.5 meters for AHN2/AHN3/AHN4, 5 meters for AHN1. Choose resolution of AHN in meters. AHN3 and AHN2 both have 0.5 and 5 meters. AHN1 has 5 and 100 m. |
output.dir |
Optional but unnecessary. Set location of output raster files. Leaving blank (default) will make all output point files be temporary files. This output directory excludes the location of the AHN sheets which is depicted with the |
LONLAT |
Optional. Default FALSE. Set to TRUE if X and Y are in Longitude and Latitude format. Output will be in RD New format. |
extract.method |
Default 'simple'. Choose between 'simple' (nearest) and 'bilinear'. Intersection is done using |
decimals |
Default 2. Maximum Determines the number of decimal places in the output elevation. |
sheets.method |
Default FALSE. When TRUE, it downloads AHN area through the available GeoTIFF AHN sheets available on PDOK. |
sheets.dir |
Default is the 'AHN_sheets' directory in the working directory or |
sheets.keep |
Default TRUE. Only applicable if |
AHN elevation in meters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.