This repository contains the specification for the SOZip (Seek-Optimized Zip) profile to the ZIP file format.
A Seek-Optimized ZIP file (SOZip) is a ZIP file that contains one or several Deflate-compressed files that are organized and annotated such that a SOZip-aware reader can perform very fast random access (seek) within a compressed file.
SOZip makes it possible to access large compressed files directly from a .zip file without prior decompression. It is not a new file format, but a profile of the existing ZIP format, done in a fully backward compatible way. ZIP readers that are non-SOZip aware can read a SOZip-enabled file normally and ignore the extended features that support efficient seek capability.
zipfile
module, creating and reading SOZip-enabled files.See Annex A: Software implementations for more details.
Examples of SOZip-enabled files can be found in the sozip-examples repository.
Other ZIP related specificationThis GitHub organization also hosts the KeyValuePairs extra-field specification, to be able to encode arbitrary key-value pairs of metadata associated with a file within a ZIP. For example to store the Content-Type of a file.
Done with GDAL sozip branch, on a laptop running a Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (6 cores / 12 virtual CPUs).
sozip nz-building-outlines.gpkg.zip nz-building-outlines.gpkg
36 s Single threaded compression of same file to 480 MB with regular zip
utility with
zip nz-building-outlines-regular.gpkg.zip nz-building-outlines.gpkg
bench_ogr_batch nz-building-outlines.gpkg.zip
0.7 s from uncompressed GeoPackage file with
bench_ogr_batch nz-building-outlines.gpkg
ogr2ogr out.gpkg nz-building-outlines.gpkg.zip -spat 1740000 5910000 1750000 5920000
1.1 s from uncompressed GeoPackage file with
ogr2ogr out.gpkg nz-building-outlines.gpkg -spat 1740000 5910000 1750000 5920000
ogr2ogr out.gpkg nz-building-outlines.gpkg.zip -fid 1000000
44 ms from uncompressed GeoPackage file with
ogr2ogr out.gpkg nz-building-outlines.gpkg -fid 1000000
We welcome contributions to this specification as issues, pull requests or discussions.
If you use SOZip or plan to use it for your data delivery, or consider doing a SOZip implementation, etc., let us know!
Datasets available as SOZipThe SOZip specification and its GDAL implementation have been developed by Spatialys, with support from Safe Software
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4