laptop and a wrench

不具合

The Calculate Areas tool fails if the required geometry field is named something other than Shape.

最後に公開された状態: September 13, 2016 ArcGIS for Desktop
不具合 ID 番号 NIM066664
送信されましたMarch 28, 2011
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.0
ステータスWill Not Be Addressed

参考情報

Calculate Areas is a legacy tool that will no longer be updated (or included in ArcGIS Pro). Use the Calculate Field tool or the Geometry Calculator instead of the Calculate Areas tool in your workflows and custom script or models tools. http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-statistics-toolbox/calculate-areas.htm

対処法

1. Create a copy of the <a href="http://CalculateAreas.py" target="_blank">CalculateAreas.py</a> file in <Install Location>\ArcGIS\Desktop10.0\ArcToolbox\Scripts and paste it in the same location (this is to keep a copy of the original in case it must be reverted).2. Right-click and edit the <a href="http://CalculateAreas.py" target="_blank">CalculateAreas.py</a> in a python IDE or Notepad.3. Change the following code from:#### Calculate Field #### DM.CalculateField(outputFC, areaFieldName, "shape.area!", "PYTHON_9.3")to:#### Calculate Field #### desc = arcpy.Describe(outputFC) shapeField = desc.shapeFieldName DM.CalculateField(outputFC, areaFieldName, "!" + shapeField + ".area!", "PYTHON_9.3")4. Save the changes and re-run the tool.

再現の手順

不具合 ID: NIM066664

ソフトウェア:

  • ArcGIS for Desktop

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

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

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

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

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

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

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