[gdal-dev] Python ogr GetFieldAsString problem
Jukka Rahkonen
jukka.rahkonen at maanmittauslaitos.fi
Wed May 13 13:55:19 PDT 2015
<Steve.Toutant <at> inspq.qc.ca> writes:
>
> I'm trying to parse a GML and read all
> the values of an attribute.
> The problem is that feat.GetFieldAsString('LONG_STAT')
> truncate the string to the comma
> So instead of having -64,2131,
> I get -64 in the output
> What is the appropriate way to get the
> value of an attribute?
> thanks you!
Hi,
I would concentrate on configuring your Oracle and Mapserver so that GML
from the WFS service would use point as a decimal separator instead of
comma. I do not know exactly what needs to be done but I would startby
reading a whole lot about NLS_LANG beginning from
http://www.oracle.com/technetwork/products/globalization/nls-lang-099431.html.
(I have been reading Mapserver-users mails so I know a bit about the
environment).
-Jukka Rahkonen-
More information about the gdal-dev
mailing list