[gdal-dev] accessing zip files by URL

Chaitanya kumar CH chaitanya.ch at gmail.com
Thu Mar 24 13:30:57 EDT 2011


Joaguim,

I think /vsizip/vsicurl/http://path.to/the/file.zip works.

You have to initialize the zip file and remote file handlers using
VSIInstallCurlFileHandler() and VSIInstallZipFileHandler()

Refer: http://trac.osgeo.org/gdal/wiki/UserDocs/ReadInZip

On Thu, Mar 24, 2011 at 8:48 PM, Joaquim Luis <jluis at ualg.pt> wrote:

> Hi,
>
> How do we access to a compressed files by URL? We can do that, can't we?
>
> As an example I try this (on Windows)
>
> gdalinfo /vsizip/C:\
> http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip
> ERROR 4: `/vsizip/C:\
> http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip'
> does not exist in the file system,
> and is not recognised as a supported dataset name.
>
> and this
>
> gdalinfo /vsizip//
> http://dds.cr.usgs.gov/srtm/version2_1/SRTM30/w020n90/w020n90.dem.zip
>
> but the error message is similar.
>
> The idea is to fetch the data directly into GMT, but first I need to
> understand well how it works.
>
> Thanks
>
> Joaquim Luis
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110324/9a1823c7/attachment.html


More information about the gdal-dev mailing list