laptop and a wrench

不具合

Using the fields parameter in GeoAccessor.from_featureclass() encounters "UnboundLocalError: local variable 'cursor_fields' referenced before assignment".

最後に公開された状態: May 28, 2019 ArcGIS Pro
不具合 ID 番号 BUG-000121900
送信されましたApril 24, 2019
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン2.3.2
オペレーティング システムN/A
オペレーティング システムのバージョンN/A
修正されたバージョン1.9.1
ステータスFixed

対処法

Use the SpatialDataFrame.from_featureclass() instead:

from arcgis.features import SpatialDataFrame

fc = r'<path_to_a_feature_class>'

sdf = SpatialDataFrame.from_featureclass(fc, fields=[<some_fields_from_this_feature_class>])

再現の手順

不具合 ID: BUG-000121900

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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