[gdal-dev] ogr2ogr - importing gml with more then one value for attribute

Piotr Pachół piotrpachol at gmail.com
Thu Jul 3 06:35:57 PDT 2014


Hello,
I have problem using ogr2ogr during import gml file which can have one 
or more then one value for an attribute e.g.:

<gml:featureMember>
    <id>101</id>
    <fun>A</fun>
    <fun>B</fun>
     .
     .
</gml:featureMember>
<gml:featureMember>
    <id>102</id>
    <fun>C</fun>
     .
     .
</gml:featureMember>

In above situation ogr2ogr didn't  import at all attribute "fun".

May be in this situation it would be better when user can choose one of 
variant:
- import first encountered value of attribute "fun" from each record 
e.g.: "A",
- import all values separated with comma e.g.: "A, B"
- ideal solution but difficult: create auxiliary table which keeps all 
relations one to many e.g.:
     101  A
     101  B
     102  C

Regards,
Piotr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140703/6134bbe2/attachment.html>


More information about the gdal-dev mailing list