[gdal-dev] Is this vsi* behavior intended?
even.rouault at mines-paris.org
Sat Jan 21 03:35:25 EST 2012
Le samedi 21 janvier 2012 03:21:43, Joaquim Luis a écrit :
> 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)?
Several points :
* the correct syntax when combining /vsi.../ domains is to have a double slash
between them : /vsigzip//vsicurl/http:.../...30S.ACE2.gz
* there was a typo in the ACE2 driver that prevented the above to work. The fix
has been now commited
* there is a autodetection mechanism in the ACE2 driver to automatically
prepend /vsigzip/ in front of the filename if /vsigzip/ isn't already there and
that the extension is .ace2.gz
Hope that it explains everything.
More information about the gdal-dev