Understand the GeoTessera Data Access Layer
mainGeoTessera streams manifests, embedding tiles, and landmasks via HTTPS from the Source Cooperative repository. It uses a urllib3 connection pool for efficient downloads and implements several reliability features:
- Per-output-dir mirroring: Tiles are saved to the directory specified by
--output(orembeddings_dir) and persist for reuse. - Connection pooling: Reuses connections for thousands of per-tile GET requests.
- Retries: Uses exponential backoff for rate limiting, server errors, and dropped connections (honouring
Retry-After). - Integrity checking: Validates response integrity via
ETag(MD5) and raises errors on truncated responses. - Conditional caching: Uses
If-Modified-Sincefor manifests to minimize bandwidth. - Resumable downloads: Skips existing files in the output directory on rerun.
- Progress callbacks: Provides real-time feedback on download speed and size.