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
I'm trying to parse a GML and read all the values of an attribute.
Example
-64,2131
DescribeFeatureType for this layer returns
wfs_ds = ogr.Open(tmp_file.name) #tmp_file.name is the response of a WFS
getFeature request
layer = wfs_ds.GetLayerByName('SMDVDP_ST