Open StefanVanDyck opened 2 months ago
Seem to have pinpointed where the number conversion fails.
The values in that map are strings, calling the setter on the Grails Entity converts them to number that are considering the locale, set in the front-end. Causing 5.911109415203301 to become 5.911109415203301E15.
Created a proposal for a simple workaround: https://github.com/AtlasOfLivingAustralia/spatial-service/pull/251
It was getting very frustrating, making sure we always had the correct language selected when administering the layers.
Creating a new layer sometimes fails with the following error:
This is caused by incorrect parsing of the floating point numbers of the bounding box returned by geoserver. It only happens when setting the language to in our case nl_BE. This causes the grails i18n to change the number format locale to use a different decimal separator. A value of
5.911109415203301
therefor becomes5.068749233044934E15
, causing an overflow.Looking at a way to properly parse the bounding box values without being affected by the users locale. Will create a PR to fix, current workaround is just to make sure we switch to English.