<?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: Correcting a DEM, editing Z-values, Z-values from attributes in Water Resources Questions</title>
    <link>https://community.esri.com/t5/water-resources-questions/correcting-a-dem-editing-z-values-z-values-from/m-p/437002#M2147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried to run a watershed delimitation on a small piece of 10m DEM in Central Washington State.&amp;nbsp; I was getting some strange results and when I examined the accumulation grid, I found that a seam in the DEM was causing all the flow from an adjacent drainage to get captured by my drainage.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I set about trying to correct this DEM.&amp;nbsp; I figured I'd just go Raster to Multipoint,&amp;nbsp; create a point FC with Z values to act like little dams and channels in the surface, create a new terrain from the multipoints and the new point feature class, then terrain to raster, and rerun the watershed. &lt;BR /&gt;&lt;BR /&gt;But editing the point feature class has become my problem.&amp;nbsp; When I created the points layer, I created it to contain Z-values, and I added an attribute called VALUES, and when editing, I stuck the desired corrected elevation into the VALUES attribute.&amp;nbsp; The only way I could figure out to get the corrected elevation into the Z-values while editing was by editing the vertices under Sketch Properties, and I could only do one at a time. I thought I would just "Populate Zs from attributes".&amp;nbsp; But after I got this far, it seems that "Populate Zs from attributes" is only available from Production Z Management and Production Editing,&amp;nbsp; but I think Production Editing is only available in the Nautical or Aeronautical extensions which I don't have.&amp;nbsp; Searching support I found &lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/33458" rel="nofollow noopener noreferrer" target="_blank"&gt;VBA solutions&lt;/A&gt; to updating Z values from attributes, but that seems to be only applicable to 9.x.&amp;nbsp; I'm trying to figure out how to do this in 10.0, SP3.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005s0000002m000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS 10 Field Calculator&lt;/A&gt;&lt;SPAN&gt; help you can adjust the coordinates of a point by using the field calculator on the Shape field of your point class.&amp;nbsp; Here is the example given:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"For a point feature class, shift the x coordinate of each point by 100.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Parser:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shiftXCoordinate(!SHAPE!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Code Block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def shiftXCoordinate(shape):
&amp;nbsp;&amp;nbsp; shiftValue = 100
&amp;nbsp;&amp;nbsp; point = shape.getPart(0)
&amp;nbsp;&amp;nbsp; point.X += shiftValue
&amp;nbsp;&amp;nbsp; return point&lt;/PRE&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adapting this to what you need it should be something like this (where the !VALUES! field should match the name of the attribute field containing the Z values you want to assign to your points and no values of that field should be Null):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Parser:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;assignZCoordinate(!SHAPE!, !VALUES!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Code Block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def assignZCoordinate(shape, z_Value):
&amp;nbsp;&amp;nbsp; point = shape.getPart(0)
&amp;nbsp;&amp;nbsp; point.Z = z_Value
&amp;nbsp;&amp;nbsp; return point&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:34:13 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2021-12-11T19:34:13Z</dc:date>
    <item>
      <title>Correcting a DEM, editing Z-values, Z-values from attributes</title>
      <link>https://community.esri.com/t5/water-resources-questions/correcting-a-dem-editing-z-values-z-values-from/m-p/437001#M2146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to run a watershed delimitation on a small piece of 10m DEM in Central Washington State.&amp;nbsp; I was getting some strange results and when I examined the accumulation grid, I found that a seam in the DEM was causing all the flow from an adjacent drainage to get captured by my drainage.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set about trying to correct this DEM.&amp;nbsp; I figured I'd just go Raster to Multipoint,&amp;nbsp; create a point FC with Z values to act like little dams and channels in the surface, create a new terrain from the multipoints and the new point feature class, then terrain to raster, and rerun the watershed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But editing the point feature class has become my problem.&amp;nbsp; When I created the points layer, I created it to contain Z-values, and I added an attribute called VALUES, and when editing, I stuck the desired corrected elevation into the VALUES attribute.&amp;nbsp; The only way I could figure out to get the corrected elevation into the Z-values while editing was by editing the vertices under Sketch Properties, and I could only do one at a time. I thought I would just "Populate Zs from attributes".&amp;nbsp; But after I got this far, it seems that "Populate Zs from attributes" is only available from Production Z Management and Production Editing,&amp;nbsp; but I think Production Editing is only available in the Nautical or Aeronautical extensions which I don't have.&amp;nbsp; Searching support I found &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/33458"&gt;VBA solutions&lt;/A&gt;&lt;SPAN&gt; to updating Z values from attributes, but that seems to be only applicable to 9.x.&amp;nbsp; I'm trying to figure out how to do this in 10.0, SP3.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 22:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/correcting-a-dem-editing-z-values-z-values-from/m-p/437001#M2146</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2011-11-07T22:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Correcting a DEM, editing Z-values, Z-values from attributes</title>
      <link>https://community.esri.com/t5/water-resources-questions/correcting-a-dem-editing-z-values-z-values-from/m-p/437002#M2147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried to run a watershed delimitation on a small piece of 10m DEM in Central Washington State.&amp;nbsp; I was getting some strange results and when I examined the accumulation grid, I found that a seam in the DEM was causing all the flow from an adjacent drainage to get captured by my drainage.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I set about trying to correct this DEM.&amp;nbsp; I figured I'd just go Raster to Multipoint,&amp;nbsp; create a point FC with Z values to act like little dams and channels in the surface, create a new terrain from the multipoints and the new point feature class, then terrain to raster, and rerun the watershed. &lt;BR /&gt;&lt;BR /&gt;But editing the point feature class has become my problem.&amp;nbsp; When I created the points layer, I created it to contain Z-values, and I added an attribute called VALUES, and when editing, I stuck the desired corrected elevation into the VALUES attribute.&amp;nbsp; The only way I could figure out to get the corrected elevation into the Z-values while editing was by editing the vertices under Sketch Properties, and I could only do one at a time. I thought I would just "Populate Zs from attributes".&amp;nbsp; But after I got this far, it seems that "Populate Zs from attributes" is only available from Production Z Management and Production Editing,&amp;nbsp; but I think Production Editing is only available in the Nautical or Aeronautical extensions which I don't have.&amp;nbsp; Searching support I found &lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/33458" rel="nofollow noopener noreferrer" target="_blank"&gt;VBA solutions&lt;/A&gt; to updating Z values from attributes, but that seems to be only applicable to 9.x.&amp;nbsp; I'm trying to figure out how to do this in 10.0, SP3.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005s0000002m000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS 10 Field Calculator&lt;/A&gt;&lt;SPAN&gt; help you can adjust the coordinates of a point by using the field calculator on the Shape field of your point class.&amp;nbsp; Here is the example given:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"For a point feature class, shift the x coordinate of each point by 100.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Parser:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shiftXCoordinate(!SHAPE!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Code Block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def shiftXCoordinate(shape):
&amp;nbsp;&amp;nbsp; shiftValue = 100
&amp;nbsp;&amp;nbsp; point = shape.getPart(0)
&amp;nbsp;&amp;nbsp; point.X += shiftValue
&amp;nbsp;&amp;nbsp; return point&lt;/PRE&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adapting this to what you need it should be something like this (where the !VALUES! field should match the name of the attribute field containing the Z values you want to assign to your points and no values of that field should be Null):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Parser:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Python&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;assignZCoordinate(!SHAPE!, !VALUES!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Code Block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def assignZCoordinate(shape, z_Value):
&amp;nbsp;&amp;nbsp; point = shape.getPart(0)
&amp;nbsp;&amp;nbsp; point.Z = z_Value
&amp;nbsp;&amp;nbsp; return point&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/correcting-a-dem-editing-z-values-z-values-from/m-p/437002#M2147</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2021-12-11T19:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Correcting a DEM, editing Z-values, Z-values from attributes</title>
      <link>https://community.esri.com/t5/water-resources-questions/correcting-a-dem-editing-z-values-z-values-from/m-p/437003#M2148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Richard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't figure out a way to easily change a group of vertexes, but I figured out how most people update DEMs.&amp;nbsp; I've been creating a new point or line feature class with a item called "value", then editing in new elevation values into this "value" item,&amp;nbsp; then running this feature class through the "Feature to Raster" tool using the "value" item as the field input,&amp;nbsp; then slipping the new cell values into the old DEM with a Con statement in Map Algebra.&amp;nbsp; In the python window the syntax is like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;demfix = Con(IsNull(Raster("newvalues")),"olddem","newvalues")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 17:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-resources-questions/correcting-a-dem-editing-z-values-z-values-from/m-p/437003#M2148</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2011-11-15T17:17:41Z</dc:date>
    </item>
  </channel>
</rss>

