It looks like CSV driver follows the same pattern. You need to add ".csv" for the temp memory virtual file. It's good to know.<div><br></div><div>Thanks,</div><div><br><div class="gmail_quote">On Thu, Jul 5, 2012 at 11:52 AM, Yingqi Tang <span dir="ltr"><<a href="mailto:anakintang@gmail.com" target="_blank">anakintang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Cool, adding ".json" doesn't solve the problem.<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">
On Thu, Jul 5, 2012 at 11:47 AM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le jeudi 05 juillet 2012 20:44:58, Yingqi Tang a écrit :<br>
<div>> Hi Chaitanya,<br>
><br>
> GeoJSON does seem to be an exception, although the ogr driver can directly<br>
> read the GeoJSON string, the generic virtual memory file doesn't seem to<br>
> work:<br>
><br>
> inputDataStr = "{geojson_string}";<br>
> gdal.FileFromMemBuffer('/vsimem/temp', inputDataStr);<br>
> inputDriver.Open('/vsimem/temp', 0);<br>
><br>
> Is that expected?<br>
<br>
</div>Yes, the geojson driver only recognizes filenames ending with .json or<br>
.geojson, so use "/vsitem/temp.json" as a filename.<br>
</blockquote></div><br>
</div></div></blockquote></div><br></div>