koop-retired / koop-server

PROJECT DEPRECATED - DO NOT USE
Apache License 2.0
5 stars 7 forks source link

Add simplification to tiles based on zoom #5

Closed chelm closed 10 years ago

chelm commented 10 years ago

Tiles work great, but for large datasets tile generation can be slow. To fix this we need to add simplification to tiles based on zoom level of the requested tiles.

So basically we'll pass a simplify flag with the zoom level into the postgis select method. The query to the db handle selecting features with ST_SimplifyPreserveTopology with a tolerance based on zoom. This should make generation faster and reduce the size of things like geojson and pbf tiles.