laptop and a wrench

Erro

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 Publicação: August 25, 2014 ArcGIS for Desktop
Número de ID do Erro NIM073134
EnviadoSeptember 26, 2011
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS for Desktop
Versão encontrada10.0
Sistema OperacionalWindows OS
Versão do Sistema OperacionalXP
Versão Fixa10.1
StatusFixed

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM073134

Software:

  • ArcGIS for Desktop

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download