Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

This should be quick - we're trying to determine if there are problems parsing some WKT text because the system locale considers the decimal separator to be a comma instead of a period.

Anyone know? References would be handy so I can show the devs.

Our specific implementation is using Esri's Web ADF but I am curious to know how other systems handle it, and whether or not the OGC has established an official opinion.

share|improve this question

3 Answers 3

up vote 4 down vote accepted

According to a developer, the projection engine library ignores locale when writing (and reading) WKT strings. The decimal is always a period.

Melita Kennedy Esri product engineer

share|improve this answer
    
Melita, I presume that's "the arcgis projection library..."? (and it's convention here not to sign posts. People can click through to your user page to get more info) –  matt wilkie Dec 9 '10 at 5:28

When in doubt go to the OGC Spec (http://portal.opengeospatial.org/modules/admin/license_agreement.php?suppressHeaders=0&access_license_id=3&target=http://portal.opengeospatial.org/files/index.php?artifact_id=25355) which when you follow through all the BNF on page 53 indicates that a period or a comma are acceptable decimal points.

share|improve this answer

This FAQ suggests that you might find problems with GDAL, but you should mention what software you are using:

http://trac.osgeo.org/gdal/wiki/FAQMiscellaneous#DoesGDALworkindifferentinternationalnumericlocales

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.