laptop and a wrench

不具合

A model with the Raster Calculator tool referencing a variable fails with Ukrainian region and language settings.

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

参考情報

Fixed in 10.1

対処法

The following Python script worked as it uses the locale module:# Import locale moduleimport localelocale.setlocale(locale.LC_NUMERIC, 'Ukrainian_Ukraine')import arcpyfrom <a href="http://arcpy.sa" target="_blank">arcpy.sa</a> import *# Check out any necessary licensesarcpy.CheckOutExtension("spatial")#Variables:hrsm2t = "<a href="file:////csc-hales7d//Incidents//1056521_RC//UA_Model//hrsm2t.tif" target="_blank">\\\\csc-hales7d\\Incidents\\1056521_RC\\UA_Model\\hrsm2t.tif</a>"output = "<a href="file:////csc-hales7d//Incidents//1056521_RC//PythonOutput.tif" target="_blank">\\\\csc-hales7d\\Incidents\\1056521_RC\\PythonOutput.tif</a>"#Calculate Statisticsarcpy.CalculateStatistics_management(hrsm2t, "1", "1", "")#Get Raster PropertiescalcMean = arcpy.GetRasterProperties_management(hrsm2t, "MEAN")meanValue = calcMean.getOutput(0)strValue = str(meanValue)locValue = locale.atof(strValue)#GreaterThantempOutput = GreaterThan(hrsm2t, locValue)tempOutput.save(output)print "done"

再現の手順

不具合 ID: NIM083013

ソフトウェア:

  • ArcGIS for Desktop

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

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

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

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

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

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

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