Cool, adding ".json" doesn't solve the problem.<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 class="im">> 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>