laptop and a wrench

Bug

In Python, for Z enabled data, the Z property value will be returned or printed as none when using the centroid property to expose the point object.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM073134
SubmittedSeptember 26, 2011
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.0
Operating SystemWindows OS
Operating System VersionXP
Version Fixed10.1
StatusFixed

Workaround

Use the getPart method instead, such as used in this sample script:import arcpyimport sysother = r"<a href="file://Data/Incidents/September/PythonGetPoint/Data_Script_IncNo965768/Testing.gdb/XYZ" target="_blank">\\Data\Incidents\September\PythonGetPoint\Data_Script_IncNo965768\Testing.gdb\XYZ</a>"desc_rwyends = arcpy.Describe(other)ends_sc = arcpy.SearchCursor(other)for eachend in ends_sc: epnt = eachend.Shape getpnt = epnt.getPart() epntX = getpnt.X epntY = getpnt.Y epntZ = getpnt.Z Zman = desc_rwyends.hasZ print str(epntX) + ", " + str(epntY) + ", " + str(epntZ)+ ", " + str(Zman)del eachenddel ends_sc

Steps to Reproduce

Bug ID: NIM073134

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options