<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>I'm curious if the GeoJSON driver does not support the VSI API completely?</div>
<div><br>
</div>
<div>This works (stream WFS > GeoJSON):</div>
<div><br>
</div>
<div>    curl "<a href="http://server.com/wfs?request=GetFeature">http://server.com/wfs?request=GetFeature</a>..." | ogr2ogr -f "GeoJSON" /vsistdout/ /vsistdin/</div>
<div><br>
</div>
<div>but this doesn't (stream GeoJSON > KML):</div>
<div><br>
</div>
    cat ~/my-geojson.json | ogr2ogr -f "KML" /vsistdout/ /vsistdin/
<div><br>
</div>
<div>... that is, I can't seem to stream GeoJSON as an input to ogr2ogr. Is that a known issue or am I doing something wrong? <a href="http://www.gdal.org/ogr/drv_geojson.html">The documentation</a> states that I should be able to do this, but I'm receiving
 an error:</div>
<div><br>
</div>
<div>
<div>$ cat my-geojson.json | ogr2ogr -f "KML" /vsistdout/ /vsistdin/</div>
<div>ERROR 1: GeoJSON parsing error: unexpected end of data (at offset 6000)</div>
<div>ERROR 4: Failed to read GeoJSON data</div>
<div>FAILURE:</div>
<div>Unable to open datasource `/vsistdin/' with the following drivers.</div>
</div>
<div>...</div>
<div><br>
</div>
<div><br>
</div>
<div>I'm working with GDAL 1.10.0.</div>
<div><br>
</div>
<div>Thank you!</div>
<div>Ryan</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>____________________</div>
<div><br>
</div>
<div>Ryan Clark</div>
<div>Arizona Geological Survey</div>
<div><a href="mailto:ryan.clark@azgs.az.gov">ryan.clark@azgs.az.gov</a></div>
<div>(520) 302-4871</div>
<div><a href="https://www.facebook.com/ModernGeologist">facebook.com/ModernGeologist</a></div>
<div><a href="https://twitter.com/worbly">@worbly</a></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>