'How to open zip raster tif file with spatial information in rasterio python

I am trying to import zip raster tif file which include spatial information such as ovr. ,tfw. and aux.xml. file extensions. However, I couldn't find any code of opening raster zip file.

As follows, tif file is composed of four small files to have right projection and coordinates. They are again compressed in one zip file. Therefore, my purpose is to open the following four files all together to get an image in rasterio with the right "Transform/ Affine" information.

Screenshot of the small four files of a raster tif file

Otherwise, when I open the tif file in the rasterio, the Transform information is out of the world as follow. Affine(1.9800000000000022, -0.0, 752184.0447924964, -0.0, -1.9800000000000022, 1850957.477092044) Therefore, when I export the tif file in rasterio, the location is wrong.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source