Select to view content in your preferred language

Calculate Z Geometry of a point feature with value from a field in Attribute table

5105
7
Jump to solution
02-24-2021 10:40 AM
Labels (1)
MelissaSalich
Frequent Contributor

I need to populate the Z Geometry Attribute of a point feature class.
I have the Z value as a field in the attribute table.
How can I script this process to avoid having to hand type the elevation valves when I have the data already?

Pro 2.7, file gdb.

MelissaSalich_0-1614191872660.png

Field in Attribute table:

MelissaSalich_1-1614191921895.png

 

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor
7 Replies
DanPatterson
MVP Esteemed Contributor

If you have the 3D analyst extension

Feature To 3D By Attribute (3D Analyst)—ArcGIS Pro | Documentation


... sort of retired...
MelissaSalich
Frequent Contributor

thank you! exactly what i was looking for!

0 Kudos
by Anonymous User
Not applicable

If you know Python, you can also update(replace) the Z value from an attribute field.

Take a look at the answer from the following for a starter to update(replace) the Z

https://gis.stackexchange.com/questions/329511/updating-z-value-of-geometry-using-updatecursor

MelissaSalich
Frequent Contributor

thank you, I'm bookmarking this for future reference! I used Feature to 3D By Attribute for this situation.

0 Kudos
jchester73
Regular Contributor

Does Feature to 3D by Attribute create an entirely new feature class or can this be used to replace z values on an existing one?

0 Kudos
MelissaSalich
Frequent Contributor

creates new feature class

0 Kudos
tikola
by Esri Contributor
Esri Contributor

Current version updates existing feature class - at least in mine pipe network tests. What was fancy for a line we could use two separate fields and it nicely adds elevations in gravity based sewer both ends. So feeding two separate height attribute added height in correct ends of a line. Brilliant functionality for gravity based sewers where question is where water flows in pipe network.

0 Kudos