GeoLatte / geolatte-geom

A geometry model that conforms to the OGC Simple Features for SQL specification.
Other
132 stars 63 forks source link

DecimalDegreeTest.testDMS failed because of locale #73

Closed Furcube closed 5 years ago

Furcube commented 5 years ago

EIDT: in master branch Cause is DecimalDegree.toDMS which is using String.format with default locale In russian locale decimal separator is comma, this will result in test failing with result:

Expected :4° 20' 30.00''E 50° 10' 20.00''N
Actual   :4° 20' 30,00''E 50° 10' 20,00''N

I did a quick-fix for myself adding Locale.US to that call of String.format, But not sure if this is right solution.

maesenka commented 5 years ago

Thanks for the report. I solved it in (almost) the same way (using Locale.ROOT rather than US)