Joaguim,<br><br>I think /vsizip/vsicurl/<a href="http://path.to/the/file.zip">http://path.to/the/file.zip</a> works.<br><br>You have to initialize the zip file and remote file handlers using VSIInstallCurlFileHandler() and VSIInstallZipFileHandler()<br>
<br>Refer: <a href="http://trac.osgeo.org/gdal/wiki/UserDocs/ReadInZip">http://trac.osgeo.org/gdal/wiki/UserDocs/ReadInZip</a><br><br><div class="gmail_quote">On Thu, Mar 24, 2011 at 8:48 PM, Joaquim Luis <span dir="ltr"><<a href="mailto:jluis@ualg.pt">jluis@ualg.pt</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
How do we access to a compressed files by URL? We can do that, can't we?<br>
<br>
As an example I try this (on Windows)<br>
<br>
gdalinfo /vsizip/C:\<a href="http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip" target="_blank">http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip</a><br>
ERROR 4: `/vsizip/C:\<a href="http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip" target="_blank">http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip</a>' does not exist in the file system,<br>
and is not recognised as a supported dataset name.<br>
<br>
and this<br>
<br>
gdalinfo /vsizip//<a href="http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip" target="_blank">http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip</a><br>
<br>
but the error message is similar.<br>
<br>
The idea is to fetch the data directly into GMT, but first I need to understand well how it works.<br>
<br>
Thanks<br><font color="#888888">
<br>
Joaquim Luis<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>