<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135819#M50318</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Always a good idea think about analysis environments in a workflow. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It would be important to manage the extent to reduce the size (the number of rows and columns)&amp;nbsp; to process the image, which may affect performance.&amp;nbsp; Also, to avoid in some cases, processing the&amp;nbsp;entire extent of a large image service.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 15:06:02 GMT</pubDate>
    <dc:creator>RyanDeBruyn</dc:creator>
    <dc:date>2022-01-21T15:06:02Z</dc:date>
    <item>
      <title>How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1134881#M50166</link>
      <description>&lt;P&gt;How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9?&lt;/P&gt;&lt;P&gt;Code looks something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;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')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was run using the default ArcGIS Pro 2.9 conda env from PyCharm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT&lt;BR /&gt;The Terrain &lt;A href="https://mterss.maps.arcgis.com/home/item.html?id=58a541efc59545e6b7137f961d7de883#" target="_self"&gt;page&lt;/A&gt; lists the URL as:&lt;BR /&gt;&lt;A href="https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer" target="_blank"&gt;https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;While the URL from Terrain properties as accessed through ArcGIS Pro is:&lt;/P&gt;&lt;P&gt;&lt;A href="https://elevation.arcgis.com/arcgis/services/WorldElevation/Terrain/ImageServer" target="_blank"&gt;https://elevation.arcgis.com/arcgis/services/WorldElevation/Terrain/ImageServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Using either as described above has the same error.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 06:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1134881#M50166</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-19T06:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1134884#M50167</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/extract-values-to-points.htm" target="_blank"&gt;Extract Values to Points (Spatial Analyst)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;requires a raster layer, to be sure, convert the terrain service to a raster layer and/or save a local copy and...&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-raster-layer.htm" target="_blank"&gt;Make Raster Layer (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 06:29:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1134884#M50167</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-01-19T06:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1134899#M50170</link>
      <description>&lt;P&gt;After testing this more,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;MakeRasterLayer(in_raster=https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer,
                out_rasterlayer='temp_raster')

ExtractValuesToPoints(in_point_features=r'valid/path/in.shp',
                          in_raster='temp_raster',
                          out_point_features=r'valid/path/out.shp')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;MakeImageServerLayer(in_image_service=https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer,
                out_imageserver_layer='temp_raster')

ExtractValuesToPoints(in_point_features=r'valid/path/in.shp',
                          in_raster='temp_raster',
                          out_point_features=r'valid/path/out.shp')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;both crash with the same behavior described in the original post. UI "ArcGIS Application has stopped working" pops up. I tried with SaveToLayerFile as well - no joy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the MakeRasterLayer snippet succeeds as intended when run from the Python console within ArcGIS Pro 2.9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The MakeImageServerLayer also runs without error when run from the Python console, but returns incorrect raster extraction values. They are all zeros.&lt;/P&gt;&lt;P&gt;So this is a PyCharm problem when using the ArcGIS conda env. There's no error message returned from ESRI here, only the crash UI, so debugging this further seems difficult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how the server calls work on the backend, but this could also be a corporate firewall issue.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 08:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1134899#M50170</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-19T08:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135228#M50227</link>
      <description>&lt;P&gt;Some more testing on this from within ArcGIS Pro 2.9 GUI:&lt;BR /&gt;&lt;BR /&gt;1. Ribbon &amp;gt; Map &amp;gt; Add Data &amp;gt; Living Atlas Terrain Layer&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# 2. Run Make Raster Layer on Terrain service. Copied Python snippet:
arcpy.management.MakeRasterLayer("https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer", "Terrain_raster_layer", '', "-20037507.84 -20037508.41 20037507.8427882 20037508.34", None)&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;# 3. Run Make Image Server Layer on Terrain service. Copied Python snippet.
# Tool Exits with WARNING 000950: Output raster exceeds the size limitation #(rows: 5000 and columns: 5000) defined on the image server. Please input a # smaller extent.
arcpy.management.MakeImageServerLayer("https://elevation.arcgis.com/arcgis/rest/services/WorldElevation/Terrain/ImageServer", "Terrain_image_server", "-20037507.84 -20037508.41 20037507.8427882 20037508.34", None, "ByAttribute", '', "0", '', 0.249999999580713, '', "None")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Run Extract Multi Values to Points, using the 3 layers above as inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output point shapefile shows:&lt;/P&gt;&lt;P&gt;-Correct extract values from the Terrain service added to the Map (Step 1).&lt;/P&gt;&lt;P&gt;-All Zero number values from Terrain service added with MakeRasterLayer (Step 2).&lt;/P&gt;&lt;P&gt;-Correct extract values from the Terrain service added with Make Image Server Layer (Step 3).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 22:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135228#M50227</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-19T22:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135234#M50229</link>
      <description>&lt;P&gt;Bonus, the Extract Values to Points tool yields the same results as above. Looking like Make Raster Layer isn't the way to go here.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 23:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135234#M50229</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-19T23:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135440#M50258</link>
      <description>&lt;P&gt;As a general rule Image Services are supported as input directly to Spatial Analyst GP tools in Pro.&amp;nbsp; If you add the IS as a layer you should be able to use it in the tool.&lt;/P&gt;&lt;P&gt;In python you will need to use the &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/tool-reference/data-management/make-image-server-layer.htm" target="_self"&gt;MakeImageServiceLayer&lt;/A&gt; tool to create a layer,&amp;nbsp; then use the result as input to Extract Values to Points.&lt;/P&gt;&lt;P&gt;Note:&amp;nbsp; Be aware of the extent when creating the ISLayer (use template parameter) or set accordingly when running Extract tools.&amp;nbsp; It would be important to manage the extent to reduce the size (the number of rows and columns)&amp;nbsp; to process the image, which may affect performance.&amp;nbsp; Also, to avoid in some cases, processing the&amp;nbsp;entire extent of a large image service.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ISlyr = arcpy.MakeImageServerLayer_management(inRasterIS, "outISlyr", inPointFeatures)
arcpy.sa.ExtractValuesToPoints(inPointFeatures, ISlyr, outPointFeatures)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:03:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135440#M50258</guid>
      <dc:creator>RyanDeBruyn</dc:creator>
      <dc:date>2022-01-21T15:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135650#M50297</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1408"&gt;@RyanDeBruyn&lt;/a&gt;&amp;nbsp;Thank you! You beat me to the write up.&lt;/P&gt;&lt;P data-unlink="true"&gt;Could you comment on what "Be Aware of extent.." means in this context?&lt;BR /&gt;&lt;BR /&gt;The next step is to solve&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/what-values-are-used-from-the-esri-terrain-service/m-p/1132241#M49786" target="_self"&gt;this&amp;nbsp;&lt;/A&gt;question. If I'm extracting values from ESRI Terrain service, which "layer" or data source from within the terrain service am I getting? SRTM, NED, etc are all included.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 21:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135650#M50297</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-01-20T21:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use the ESRI Terrain service as the in_raster parameter for ExtractValuesToPoints in ArcGIS Pro 2.9 arcpy?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135819#M50318</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Always a good idea think about analysis environments in a workflow. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It would be important to manage the extent to reduce the size (the number of rows and columns)&amp;nbsp; to process the image, which may affect performance.&amp;nbsp; Also, to avoid in some cases, processing the&amp;nbsp;entire extent of a large image service.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 15:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-can-i-use-the-esri-terrain-service-as-the-in/m-p/1135819#M50318</guid>
      <dc:creator>RyanDeBruyn</dc:creator>
      <dc:date>2022-01-21T15:06:02Z</dc:date>
    </item>
  </channel>
</rss>

