[Gdal-dev] bug: ogr2ogr gml output

Peter.Rushforth at statcan.ca Peter.Rushforth at statcan.ca
Thu Feb 1 23:07:49 EST 2007


Hi,

Two bugs, in fact:

i) When an input gml file contains a feature which contains
a property of the same name (although beginning with a lower-case letter
as per gml conventions), ogr2ogr gets confused.  It appears that
it is not case-sensitive.  When the output is also gml, spurious
gml:featureMembers appear, as the simple property element has been
mistaken for the complex feature element.  The issue is reflected
in the gfs file produced (samples attached).
eg. ogr2ogr -s_srs NAD83 -t_srs EPSG:3347 -f GML messed_up_features.gml gecu000e07g_e.gml  

ii)  When translating a shape file with accented characters into gml,
ogr2ogr outputs a file which it says is utf-8 encoded, but which won't
parse and which contains iso-8859-1 codepoints. (sample attached).
eg. ogr2ogr -f GML bad_encoding.gml shp/geco000e07a_f.shp

Hope these are clear!

Thanks for a great tool (that supports gml :-)),

Peter Rushforth
Geography Division
Statistics Canada
Ottawa Ontario
K1A 0T6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: messed_up_features.xsd
Type: application/octet-stream
Size: 2188 bytes
Desc: messed_up_features.xsd
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070201/20a2caea/messed_up_features.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bad_encoding.xsd
Type: application/octet-stream
Size: 1839 bytes
Desc: bad_encoding.xsd
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070201/20a2caea/bad_encoding.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bad_encoding.gml
Type: application/octet-stream
Size: 1175 bytes
Desc: bad_encoding.gml
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070201/20a2caea/bad_encoding-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gecu000e07g_e.gml
Type: application/octet-stream
Size: 1760 bytes
Desc: gecu000e07g_e.gml
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070201/20a2caea/gecu000e07g_e.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gecu000e07g_e.gfs
Type: application/octet-stream
Size: 887 bytes
Desc: gecu000e07g_e.gfs
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070201/20a2caea/gecu000e07g_e-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: messed_up_features.gml
Type: application/octet-stream
Size: 1566 bytes
Desc: messed_up_features.gml
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070201/20a2caea/messed_up_features-0001.obj


More information about the Gdal-dev mailing list