<div dir="ltr">Great, Evan! And I found <a href="http://erouault.blogspot.com/2012/05/new-gdal-virtual-file-system-to-read.html">your blog post about it</a> with some good, helpful links too. Thank you!</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, May 1, 2014 at 2:54 PM, 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 01 mai 2014 20:34:51, Robert Nix a écrit :<br>
<div><div class="h5">> Hi,<br>
><br>
> I have a situation where i get a geotiff across the network. I don't want<br>
> to have to save it to a file and reopen it to load it into numpy. Is this<br>
> possible with GDAL? Doesn't have to be supported in Python. I can call into<br>
> C/C++ if needed.<br>
<br>
</div></div>Several possible ways :<br>
<br>
- This will download the whole file in memory before opening it :<br>
gdalinfo <a href="http://path/to/the.tif" target="_blank">http://path/to/the.tif</a><br>
<br>
- This will download parts of the file when needed (if the server supports<br>
range downloading) :<br>
gdalinfo /vsicurl/<a href="http://path/to/the.tif" target="_blank">http://path/to/the.tif</a><br>
<br>
- Download the data with the way you prefer in the_buffer<br>
Use gdal.FileFromMemBuffer("/vsimem/tmp.tif", the_buffer)<br>
gdal.Open("/vsimem/tmp.tif")<br>
gdal.Unlink("/vsimem/tmp.tif")<br>
<br>
<br>
><br>
> Thanks<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Geospatial professional services<br>
<a href="http://even.rouault.free.fr/services.html" target="_blank">http://even.rouault.free.fr/services.html</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">.nix</div>
</div>