[gdal-dev] ogr utilities -dsco

Frank Warmerdam warmerdam at pobox.com
Tue Feb 19 13:43:05 PST 2013


David,

This should have worked.

ogr2ogr -f "KML" test3.kml impaired_2010_streams.shp -dsco
NameField=AUID -dsco DescriptionField=REACH_DESC

Did one of the options get ignored?  Was there an error?

Best regards,
Frank

On Tue, Feb 19, 2013 at 1:26 PM, David Fawcett <david.fawcett at gmail.com> wrote:
> 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.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer


More information about the gdal-dev mailing list