laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 25, 2014 ArcGIS for Desktop
Bug-ID-Nummer NIM083013
EingereichtJuly 23, 2012
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS for Desktop
Gefunden in Version10.0
BetriebssystemWindows OS
Betriebssystemversion7
Behoben in Version10.1
StatusFixed

Zusätzliche Informationen

Fixed in 10.1

Workaround

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"

Schritte zur Reproduzierung

Bug-ID: NIM083013

Software:

  • ArcGIS for Desktop

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln