Geotessera has merged changes that affect how you retrieve and request embedding tiles. The most important update is that the main fetching function now yields tiles one at a time rather than returning them all at once, so any code that indexes into the result will need adjusting.
Features
-
One-at-a-time tile fetching: The fetch_embeddings function now produces tiles sequentially instead of loading the full set into memory, and the change is merged via #35 but not yet in a release. If your code indexes into the returned result or checks its length, you will need to collect the tiles into a list first.
-
Tile counting for a region: A new method returns the number of tiles that fall within a bounding box for a given year, which makes it straightforward to build a progress indicator while downloading. It is merged in the same pull request as the fetching change.
-
Shapefile as a request boundary: The embedding request form now accepts an attached shapefile (a common GIS file format for geographic boundaries) as an alternative to drawing a bounding box. This was merged in commit 0b5411c4.
Known issues
- Registry directory setting breaks download: Setting the registry directory environment variable causes the download command to report zero available tiles. This is reported in issue #34 and has no fix merged yet.