What a frustration installing these functions :(.
The call you mention "github_install()" is not recognized.
Only
devtools::install_github("Rtools")
WARNING: Rtools is required to build R packages, but is not currently installed.
Please download and install Rtools custom from https://cran.r-project.org/bin/windows/Rtools/.
Error in parse_repo_spec(repo) : Invalid git repo specification: 'Rtools'
So downloading now..
I will come back some day i got this programm running.
..
..
- installing source package 'rAHNextract' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'rAHNextract'
finding HTML links ... done
ahn_area html
ahn_letters html
ahn_pc html
ahn_point html
create_area html
create_bbox_polygon html
create_spatialpoint html
create_wcs_url html
download_bladnrs html
download_dsm html
download_dtm html
download_pointCloud html
download_wcs_raster html
extract_elevation html
generate_ahn_point html
generate_lowres_ahn_points html
get_ahn_letter html
get_ahn_sheets html
get_dem html
get_resolution html
get_surrounding_ahn html
read_pc html
trim_name html
write_pc html
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
- DONE (rAHNextract)
That looks like it is here!
ahn_point(name = "Utrecht point", X = 136550, Y = 456060)
Error in ahn_point(name = "Utrecht point", X = 136550, Y = 456060) :
could not find function "ahn_point"
ahn_point(X = 136550, Y = 456060)
Error in ahn_point(X = 136550, Y = 456060) :
could not find function "ahn_point"
ahn_point
What now?
library(rAHNextract)
ahn_point(name = "Utrecht point", X = 136550, Y = 456060)
AHN3 0.5 resolution DSM (ruw) selected.
trying URL 'https://geodata.nationaalgeoregister.nl/ahn3/wcs?SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&COVERAGE=ahn3_05m_DSM&BBOX=136549.5,456059.5,136551,456061&CRS=EPSG:28992&RESPONSE_CRS=EPSG:28992&FORMAT=GEOTIFF_FLOAT32&WIDTH=3&HEIGHT=3'
Content type 'image/tiff' length 562 bytes
downloaded 562 bytes
[1] "Download raster image succeeded."
[1] "Intersecting raster. Getting elevation..."
[1] "Elevation of Utrecht point: 7.38 m."
[1] 7.38
Warning messages:
1: In CPL_crs_from_input(x) :
GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.
2: In .local(x, y, ...) :
Transforming SpatialPoints to the CRS of the Raster
(howly! it works !)