Hello,
I am trying to extract the elevation value from a raster at the points making up transects. I am first calculating the X and Y points, using arcpy.AddXY_management, so that I will end up with x, y, z values along the transects. The points have been generated from transect lines using arcpy.GeneratePointsAlongLines_management. However, Extract Multi Values to Points gives me the wrong values the first time I run the tool. It also resets the X and Y values in the attribute table to incorrect values. If I recalculate the X and Y values and rerun Extract Multi Values to Points, I get the right Z value. I have replicated the behavior a few times. The code lines that I am trying to use are in the attached file in case that is helpful.
Has anyone else experienced this problem?
I am using ArcGIS Pro that I updated earlier this week.