[gdal-dev] ogr utilities -dsco

David Fawcett david.fawcett at gmail.com
Tue Feb 19 13:26:53 PST 2013


OK GDAL Devs, I give up.

If I want to specify multiple -dsco key:value with OGR, what is the
syntax?

This works for one attribute:

R:\mpca>ogr2ogr -f "KML" impaired_streams_2010.kml
impaired_2010_streams.shp -ds
co NameField=AUID

But none of these work for two attributes:

R:\mpca>ogr2ogr -f "KML" test.kml impaired_2010_streams.shp -dsco
NameField=AUID,DescriptionField=REACH_DESC

R:\mpca>ogr2ogr -f "KML" test2.kml impaired_2010_streams.shp -dsco
NameField=AUID DescriptionField=REACH_DESC
FAILURE: Couldn't fetch requested layer 'DescriptionField=REACH_DESC'!

R:\mpca>ogr2ogr -f "KML" test2.kml impaired_2010_streams.shp -dsco
"NameField=AUID DescriptionField=REACH_DESC"

R:\mpca>ogr2ogr -f "KML" test3.kml impaired_2010_streams.shp -dsco
NameField=AUID -dsco DescriptionField=REACH_DESC

R:\mpca>ogr2ogr -f "KML" test4.kml impaired_2010_streams.shp -dsco
"NameField=AUID,DescriptionField=REACH_DESC"

Thanks,

David.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130219/6c3c8b1f/attachment.html>


More information about the gdal-dev mailing list