andrewxhill / MOL

The Map of Life
mol.colorado.edu/
19 stars 4 forks source link

Range size aware tiling jobs #21

Closed andrewxhill closed 13 years ago

andrewxhill commented 13 years ago

Basically, we will be tiling a small set of zoom layers for each range map. If the range is very small, there is no point in tiling at zoom level 0. Instead we will tile at a higher zoom level.

To do this we need.

  1. TileSetIndex zoom property to zoomMin and zoomMax
  2. Update Create tile metadata method to track zoomMin and zoomMax
  3. Update app_globals to have a MIN_ZOOM_LEVELS = 5 instead of TILE_MAX_ZOOM, then min_zoom we can just default to 0 until after 4. 3a. Alternatively we can always have zoomMin=0 because if the range is very small, it is minimal cost to store one or two tiles for each zoom level until you get to the relavent level. Then just slide zoomMax out as necessary.
  4. Update tiling method to measure the bbox of each SHP file and decide dynamically what the first zoom level should be based on the size of that layer.
  5. UI changes can be made to use this data, but can wait for now.