I get the following error when rendering a PNG file using mapnik.render_to_file() in my Python script:
Postgis Plugin: ERROR: invalid input syntax for type double precision: "0,25"The data source is an OpenStreetMap PostGIS database. My system was installed with a German locale (which defines "," as the decimal separator). However, I set en_GB.UTF-8 as my system locale ages ago:
$ cat /etc/default/locale LANG=en_GB.UTF-8LC_NUMERIC=en_GB.UTF-8My input Mapnik XML file does not contain any values with a comma separator (or 0.25 for that matter), so this must be coming from the Mapnik library. I'm running Mapnik 2.2.0 compiled from source on Ubuntu 12.04.
Why is Mapnik generating invalid queries on my system? Am I missing something here?
I've created an issue for this on GitHub, but I'm hoping for some advice in the meantime. Perhaps someone else has encountered this?
أكثر...
Postgis Plugin: ERROR: invalid input syntax for type double precision: "0,25"The data source is an OpenStreetMap PostGIS database. My system was installed with a German locale (which defines "," as the decimal separator). However, I set en_GB.UTF-8 as my system locale ages ago:
$ cat /etc/default/locale LANG=en_GB.UTF-8LC_NUMERIC=en_GB.UTF-8My input Mapnik XML file does not contain any values with a comma separator (or 0.25 for that matter), so this must be coming from the Mapnik library. I'm running Mapnik 2.2.0 compiled from source on Ubuntu 12.04.
Why is Mapnik generating invalid queries on my system? Am I missing something here?
I've created an issue for this on GitHub, but I'm hoping for some advice in the meantime. Perhaps someone else has encountered this?
أكثر...