[gdal-dev] Re: ogr2ogr - output WKT to console?
Hermann Peifer
peifer at gmx.eu
Wed Aug 31 17:08:36 EDT 2011
On 31/08/2011 22:52, Even Rouault wrote:
>
> Yes, as a output filename, you can use the special name /vsistdout/ (you need
> the trailing slash) . You likely need GDAL 1.8 or later for it to work.
>
Even,
Thanks for the hint. Is there a specific reason why the csv driver isn't
able to use /dev/stdout, similar to the kml driver [1] ?
Hermann
[1]
$ ogr2ogr -f kml /dev/stdout test.shp
<?xml version="1.0" encoding="utf-8" ?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document><Folder><name>test</name>
<Schema name="test" id="test">
<SimpleField name="Name" type="string"></SimpleField>
<SimpleField name="Description" type="string"></SimpleField>
<SimpleField name="Latitude" type="string"></SimpleField>
<SimpleField name="Longitude" type="string"></SimpleField>
<SimpleField name="Value" type="string"></SimpleField>
</Schema>
<Placemark>
<name>First point</name>
<ExtendedData><SchemaData schemaUrl="#test">
<SimpleData name="Name">First point</SimpleData>
<SimpleData name="Latitude">50</SimpleData>
<SimpleData name="Longitude">50</SimpleData>
<SimpleData name="Value">1</SimpleData>
</SchemaData></ExtendedData>
<Point><coordinates>50,50</coordinates></Point>
</Placemark>
(...)
More information about the gdal-dev
mailing list