Commit d59f68e3 authored by Nicolas Garcia Ospina's avatar Nicolas Garcia Ospina
Browse files

Introduced the reasoning for the polygon buffering.

parent c87b7a08
Pipeline #25877 failed with stage
in 2 minutes and 11 seconds
......@@ -43,12 +43,14 @@ contain the input bounding box and the header `quadkey`.
# quadtreegrid_polyfill.py examples
The `quadtreegrid_polyfill.py` script allows for the identification of the quadkeys of all tiles that contain an
irregular polygon or multipolygon. It is an optimization of the `Babel("bing").polyfill()` function
from [Babelgrid](https://pypi.org/project/babelgrid/). The current version of this script uses the country borders from [GADM 3.6](https://gadm.org/)
dataset. This dataset must be downloaded separately from [this_link](https://biogeo.ucdavis.edu/data/gadm3.6/gadm36_levels_shp.zip),
and the shapefile `gadm36_0.shp` must be placed in the `data` directory of this repository (`quadtreegrid/data`). Currently,
this is hard coded but may become more flexible in a further version.
The `quadtreegrid_polyfill.py` script allows for the identification of the quadkeys of all tiles that
contain an irregular polygon or multipolygon buffered by 0.05 deg, this way tiles in the borders
won't be accidentally skipped. It is an optimization of the `Babel("bing").polyfill()` function from
[Babelgrid](https://pypi.org/project/babelgrid/). The current version of this script uses the country
borders from [GADM 3.6](https://gadm.org/) dataset. This dataset must be downloaded separately from
[this_link](https://biogeo.ucdavis.edu/data/gadm3.6/gadm36_levels_shp.zip), and the shapefile `gadm36_0.shp`
must be placed in the `data` directory of this repository (`quadtreegrid/data`). Currently, this is hard
coded but may become more flexible in a future version.
## -country
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment