[gdal-dev] Is this vsi* behavior intended?

Joaquim Luis jluis at ualg.pt
Fri Jan 20 21:21:43 EST 2012


Hi,

I'm puzzled with this behavior of the vsi* functions

The first call that uses vsigzip because file is gzipped 
/vsigzip/vsicurl/http:.../...30S.ACE2.gz gives an error. However, if I 
remove the the '/vsigzip' than the command runs fine and I'm able to 
access the file.

Is this intended (it took me quite a while to figure this out)?

Joaquim

gdalinfo 
/vsigzip/vsicurl/http://tethys.eaprs.cse.dmu.ac.uk/ACE2/links/ACE2_30_SECONDS/ACE2_30S_BOTH/30N015W_BOTH_30S.ACE2.gz
ERROR 4: 
`/vsigzip/vsicurl/http://tethys.eaprs.cse.dmu.ac.uk/ACE2/links/ACE2_30_SECONDS/ACE2_30S_BOTH/30N015W_BOTH_30S.ACE2.gz' 
does not exist in the file system,
and is not recognised as a supported dataset name.

gdalinfo failed - unable to open 
'/vsigzip/vsicurl/http://tethys.eaprs.cse.dmu.ac.uk/ACE2/links/ACE2_30_SECONDS/ACE2_30S_BOTH/30N015W_BOTH_30S.ACE2.gz'.


This works fine:

gdalinfo 
/vsicurl/http://tethys.eaprs.cse.dmu.ac.uk/ACE2/links/ACE2_30_SECONDS/ACE2_30S_BOTH/30N015W_BOTH_30S.ACE2.gz
Driver: ACE2/ACE2
Files: 
/vsicurl/http://tethys.eaprs.cse.dmu.ac.uk/ACE2/links/ACE2_30_SECONDS/ACE2_30S_BOTH/30N015W_BOTH_30S.ACE2.gz
Size is 1800, 1800
Coordinate System is:
GEOGCS["WGS 84",
....


More information about the gdal-dev mailing list