Select to view content in your preferred language

ArcSDM (Spatial Data Modeling) problem

1087
2
03-02-2011 03:49 AM
Padanyi-GulyasGergely
Deactivated User
Hello everyone.

I'm using ArcGIS 9.3.1 in windowsXP 32 bit operating system.
I used the ArcSDM tool for calculating the Weight of Evidence for my data set and I have a problem with the Unit Area option.

After successfully setting the right environmental parameters I tested it. It worked just fine with the integer value 1 km2. Created the W+/W- table etc.

But the 1 km2 is too big for me for unit area, I'd like to use 0.0001 km2 instead of it. But this time the following error message appeared:


*********************

Executing: CalculateWeights fdt100_r02_sarbogardi.tif Value lelohelyek_sarbogardi_armsrace_centroid Categorical T:\!Hálózatra_T\Hatastanulmanyok_kosz\01_egyeb\00torolheto\arcsdm\tablefolyo09.dbf 2 0,0001 -99 false
Start Time: Tue Mar 01 15:59:32 2011
Running script CalculateWeights...
GP ERRORS:


PYTHON ERRORS:
Traceback Info:
  File "<string>", line 167, in <module>

Error Info:
    <type 'exceptions.ValueError'>: invalid literal for float(): 0,0001

<type 'exceptions.ValueError'>: invalid literal for float(): 0,0001
Failed to execute (CalculateWeights).
End Time: Tue Mar 01 15:59:33 2011 (Elapsed Time: 1,00 seconds)


*************

Could anyone help me how to make the script accept my floating values?

Thanks in advance!
0 Kudos
2 Replies
Padanyi-GulyasGergely
Deactivated User
I tried both. It was my first idea either.




You seem to have an internationalization problem: are you using "," for the decimal point or "."?
0 Kudos
Padanyi-GulyasGergely
Deactivated User
Yes, the very same error msg is what I got either with "." or with ","

BUT

I also wrote to Gary Raines, who is responsible for ArcSDM, and he was kind to answer me. Now the module works just as dream. The problem really was that in my operating system the default decimal value was "," instead of "."

After setting it at the Control panel I finally managed to calculate with correct Unit area.

So the problem is solved, many thanks for your advices as well!

Do you get exactly the same error message when you use "."?
0 Kudos