<?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 to create a plane 3D surface and cut it with a raster in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-create-a-plane-3d-surface-and-cut-it-with-a/m-p/1308079#M71045</link>
    <description>&lt;P&gt;Use Spatial Analyst's CON function to replace all raster cells in the larger DEM that are covered by the lake with the lake's constant elevation values creating a flat surface where the lake is.&lt;/P&gt;&lt;P&gt;In the scenario below I'm using a raster for lakes that is the same size as the main DEM.&amp;nbsp; Its values are all &lt;EM&gt;Null &lt;/EM&gt;except for the lake surface, where the values are all the lake's elevation.&lt;/P&gt;&lt;P&gt;In Python is sort of:&lt;/P&gt;&lt;PRE&gt;from arcpy.sa import *&lt;BR /&gt;&lt;BR /&gt;# input the as-is DEM and the lakes I want to burn in&lt;BR /&gt;dem = r"C:\tmp\DEM_2014.tif"&lt;BR /&gt;lakes = r"c:\tmp\data.gdb\lakes_ras&lt;BR /&gt;sr = arcpy.Describe(dem).spatialReference&lt;BR /&gt;&lt;BR /&gt;with arcpy.EnvManager(outputCoordinateSystem=sr,&lt;BR /&gt;    snapRaster=dem, &lt;BR /&gt;     extent="MAXOF"):&lt;BR /&gt;&lt;BR /&gt;demras = Raster(dem)     # where lakes &lt;BR /&gt;lakesras = Raster(lakes) # where lakes points to the flat lakes geotiff&lt;BR /&gt;&lt;BR /&gt;# if the lakes raster is null, use a value from the DEM, else use the value from the flat lakes raster&lt;BR /&gt;newras = Con(IsNull(lakesras),demras,lakesras) &lt;BR /&gt;newras.save(dem_with_lakes)&lt;BR /&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 21:12:39 GMT</pubDate>
    <dc:creator>MicZatorsky_AEC</dc:creator>
    <dc:date>2023-07-13T21:12:39Z</dc:date>
    <item>
      <title>How to create a plane 3D surface and cut it with a raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-create-a-plane-3d-surface-and-cut-it-with-a/m-p/1286651#M68883</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have the following problem, I have xyz/ raster data of a lake, for this lake I want to create a plane surface at a certain height and cut it where this height intersects with the raster layer. So basically I want to&amp;nbsp; create the water surface, creating a 3D plane is not a problem but the problem I have is, that I don't know a way to cut the new layer at the borders where it hits the land. Is there any geoprocessing tool that offers something like this or do I have to do a workaround, I also thought about cutting the raster at that height and then extract by mask but I am not sure if it would work like that.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 11:21:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-create-a-plane-3d-surface-and-cut-it-with-a/m-p/1286651#M68883</guid>
      <dc:creator>Benni1801</dc:creator>
      <dc:date>2023-05-08T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a plane 3D surface and cut it with a raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-create-a-plane-3d-surface-and-cut-it-with-a/m-p/1308079#M71045</link>
      <description>&lt;P&gt;Use Spatial Analyst's CON function to replace all raster cells in the larger DEM that are covered by the lake with the lake's constant elevation values creating a flat surface where the lake is.&lt;/P&gt;&lt;P&gt;In the scenario below I'm using a raster for lakes that is the same size as the main DEM.&amp;nbsp; Its values are all &lt;EM&gt;Null &lt;/EM&gt;except for the lake surface, where the values are all the lake's elevation.&lt;/P&gt;&lt;P&gt;In Python is sort of:&lt;/P&gt;&lt;PRE&gt;from arcpy.sa import *&lt;BR /&gt;&lt;BR /&gt;# input the as-is DEM and the lakes I want to burn in&lt;BR /&gt;dem = r"C:\tmp\DEM_2014.tif"&lt;BR /&gt;lakes = r"c:\tmp\data.gdb\lakes_ras&lt;BR /&gt;sr = arcpy.Describe(dem).spatialReference&lt;BR /&gt;&lt;BR /&gt;with arcpy.EnvManager(outputCoordinateSystem=sr,&lt;BR /&gt;    snapRaster=dem, &lt;BR /&gt;     extent="MAXOF"):&lt;BR /&gt;&lt;BR /&gt;demras = Raster(dem)     # where lakes &lt;BR /&gt;lakesras = Raster(lakes) # where lakes points to the flat lakes geotiff&lt;BR /&gt;&lt;BR /&gt;# if the lakes raster is null, use a value from the DEM, else use the value from the flat lakes raster&lt;BR /&gt;newras = Con(IsNull(lakesras),demras,lakesras) &lt;BR /&gt;newras.save(dem_with_lakes)&lt;BR /&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 21:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-create-a-plane-3d-surface-and-cut-it-with-a/m-p/1308079#M71045</guid>
      <dc:creator>MicZatorsky_AEC</dc:creator>
      <dc:date>2023-07-13T21:12:39Z</dc:date>
    </item>
  </channel>
</rss>

