I'm having a lot of floating point raster datasets in GeoServer. GeoServer automatically uses a dot (.) to separate the decimals of a value.

Is it possible to change this into a comma (,)? Either within GeoServer, or by modifying the GetFeatureInfo response so it replaces . with ,

1 Answer 1


The formatting of a GetFeatureInfo response is controlled by a FreeMarker template rather than GeoServer directly.

The FreeMarker documentation suggests that number formats are determined by the locale of the machine it is running on. So it looks like you should get , instead of . if that is what your machine is set up for.

If necessary you can override the locale of the machine by setting it as an argument to the JVM that is running GeoServer using this:

set JAVA_ARGS=-Duser.language=fr -Duser.region=FR %JAVA_ARGS%
  • Thank you, but then all my layers change a . to a ,. Is it not possible to only change this for a certain number of layers?
    – user30058
    Commented Jul 7, 2017 at 10:51
  • 1
    Locale is an all or nothing thing, I don't think there would be any way to do this without considerable coding.
    – Ian Turton
    Commented Jul 7, 2017 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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