[Gdal-dev] Some Locale Work

Frank Warmerdam warmerdam at pobox.com
Wed Jan 31 14:49:12 EST 2007


Folks,

At the request of a client, I have done some work to improve locale support
in GDAL.  In particular:

  o to make the world file parser support a mixture of locale use in the
    numbers.
  o to ensure the well known text parsing and composition work properly
    regardless of locale, including the EPSG file reading.

I think these particulars are working pretty well.  I also fixed a variety
of similar issues with regard to OGRSpatialReference.

To help test, I have extended the GDAL test suite python scripts to support
the --locale commandline switch.  So for instance doing:

  run_test.py --locale de_DE.utf8

will run the test suite in the german locale.  This currently shows problems
with PROJ.4 (due to proj.4 not having non-locale specific parsing), in some
ogr formats (especially related to wkt geometry, and gml geometry), and
some problems in gdrivers - especially with the WCS driver.

I'm going to continue to wittle away at these as time permits, and I hope
to setup a buildbot instance at some point that actually runs the test suite
in a "numerically dangerous" locale in the future.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list