use GDAL VSI infrastructure to read from zip files
extract Raster Attribute Table from GDAL rasters