mapbox / tile-cover

Generate the minimum number of tiles to cover a geojson geometry
MIT License
189 stars 40 forks source link

index hash #1

Closed morganherlocker closed 10 years ago

morganherlocker commented 10 years ago

Tiles should have some sort of alphanumerically indexable hash. Hash should probably use a dense curve so that indexes do not spread out too far. The best bet might be a 3d hilburt curve like s2 uses:

img

morganherlocker commented 10 years ago

Implemented; ended up going with a quadkey.

https://github.com/mapbox/tile-cover/commit/896b40fc014a806b930c478f35f7d71b39fb680b