nst-guide / data

Create map waypoints and layers from open data sources
https://nst-guide.github.io/data/
GNU General Public License v3.0
6 stars 0 forks source link

Generate tile tuples within polygon #21

Closed kylebarron closed 4 years ago

kylebarron commented 4 years ago

I need to figure out which x,y,z tile coordinates are within a polygon, I.e. within a given distance of the trail.

You can probably just use supermercado for this. https://github.com/mapbox/supermercado/blob/master/README.md

I think mercantile only finds bounding box intersections and not for complex polygons