laptop and a wrench

Error

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.

Última publicación: August 25, 2014 ArcGIS for Desktop
Número de ID del error NIM073134
EnviadoSeptember 26, 2011
Última modificaciónJune 5, 2024
Relacionado conArcGIS for Desktop
Versión encontrada10.0
Sistema operativoWindows OS
Versión de sistema operativoXP
Versión corregida10.1
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: NIM073134

Software:

  • ArcGIS for Desktop

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga