EsriOceans / btm

Benthic Terrain Modeler
http://resources.arcgis.com/en/communities/oceans/
Mozilla Public License 2.0
27 stars 7 forks source link

Handle internationalization issues on raster properties #81

Closed scw closed 8 years ago

scw commented 10 years ago

We have a few places where we use GetRasterProperties_management() to pull out values of the raster. I've had a report that this fails in locales that don't have our standard radix (".") for separating the decimal from the number. In many places, this is ",", which the Python float function chokes on. Instead, do locale aware conversion and strip all direct calls of float().

scw commented 8 years ago

It's become apparent that the locale code is still failing in some cases when the locale is set to a location where the decimal separator is ','. Figure out why and fix.