How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9?
Code looks something like this:
ExtractValuesToPoints(in_point_features='valid/path/in.shp',
in_raster='https://elevation.arcgis.com/arcgis/services/WorldElevation/Terrain/ImageServer',
out_point_features='valid/path/out.shp')
I also tried using MakeImageServerLayer for the in_raster. In both cases, ArcGIS crashes and brings up the ArcGIS Application crash report UI, and does not report a python stacktrace.
This was run using the default ArcGIS Pro 2.9 conda env from PyCharm.
EDIT
The Terrain page lists the URL as:
https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer
While the URL from Terrain properties as accessed through ArcGIS Pro is:
https://elevation.arcgis.com/arcgis/services/WorldElevation/Terrain/ImageServer
Using either as described above has the same error.