laptop and a wrench

不具合

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.

最後に公開された状態: August 25, 2014 ArcGIS for Desktop
不具合 ID 番号 NIM073134
送信されましたSeptember 26, 2011
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.0
オペレーティング システムWindows OS
オペレーティング システムのバージョンXP
修正されたバージョン10.1
ステータスFixed

対処法

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

再現の手順

不具合 ID: NIM073134

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動