I tried to run a watershed delimitation on a small piece of 10m DEM in Central Washington State. 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. I set about trying to correct this DEM. I figured I'd just go Raster to Multipoint, 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. But editing the point feature class has become my problem. 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. 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". But after I got this far, it seems that "Populate Zs from attributes" is only available from Production Z Management and Production Editing, but I think Production Editing is only available in the Nautical or Aeronautical extensions which I don't have. Searching support I found VBA solutions to updating Z values from attributes, but that seems to be only applicable to 9.x. I'm trying to figure out how to do this in 10.0, SP3.
def shiftXCoordinate(shape): shiftValue = 100 point = shape.getPart(0) point.X += shiftValue return point
def assignZCoordinate(shape, z_Value): point = shape.getPart(0) point.Z = z_Value return point
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.