well i have the same problem i tried but i am getting only x,y coordinates, i am using 10.2.2.
You could use the python syntax and write:
!Shape!.firstPoint.Z
More examples here: ArcGIS Help (10.2, 10.2.1, and 10.2.2)
very usefull! any suggestion if i want to create a line with a start and end point which is not drawn at the terrain but as a chord, to get after that the z values?
I'm late to the party but this tool in Pro works great!
Add Geometry Attributes—Data Management toolbox | ArcGIS Desktop
I have the same type of problem and simply cannot believe that this is still an issue.
I have gps data which i have extracted from photo metadata and converted to .kmz using geosetter.
I import this data using the kmz to layer tool and then save the points to a shapefile.
if i select a point the coordinates of the point are shown in the pop-up window in full with x, y and z (altitude).
then i tried both the 'Add XY Coordinates' tool which returned a 0 for all the z values and the 'add geometry attributes' tool which returned a 'null' for all the z values. the XY coordinates were written correctly.
what is the deal? it is 2019, we live in a 3D world. why is this so difficult?
please!
Nigel Baker
Maybe first try converting these features to 3D:
Feature To 3D By Attribute—Help | ArcGIS Desktop
Then try getting Z values.
Hi,
Thanks for the tip.
However that tool requires that you have an attribute field for the Z component.
I do not have this… kinda the point of this whole thread!
When I try to generate Z coordinates using update coordinates or some other tool all I get are zeros or nulls.
So either I try this tool before generating the false Z values; and the tool doesn’t run… or I try it after generating the Z field full of zeros and the 3D features are tied to the ground…
Or was there some other way to get the necessary Z values so that this tool can work?
I am not sure without trying it myself. I personally would extract the exif data from the photos in order to grab all of the attributes that I would (like x,y, and z), then put those back into the attributes of the point feature.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.