Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point simplification at low zoom levels? #267

Open
mapsam opened this issue Jan 23, 2018 · 3 comments
Open

Point simplification at low zoom levels? #267

mapsam opened this issue Jan 23, 2018 · 3 comments

Comments

@mapsam
Copy link
Contributor

mapsam commented Jan 23, 2018

For very large point datasets, it'd be great to build a path for simplifying them at low zoom levels like z0, z1, z2 to avoid huge individual tiles. I'm not sure what the best route is, but perhaps we can take a clue from Tippecanoe?

cc @flippmoke @ericfischer

@e-n-f
Copy link
Contributor

e-n-f commented Jan 23, 2018

The Tippecanoe mechanism is pretty straightforward if you want to adapt it:

The thing that will be hard if you're only working one tile at a time is to keep the features that are preserved consistent from one zoom to the next. Even without that, I think dropping in quadkey order will still tend to look better than random dropping (which develops clumps).

@flippmoke
Copy link
Member

It is possible to write a custom algorithm to simplify multipoints I believe, but I think we might struggle to do this with sets of features. The reasoning for this is the current processing pipeline doesn't know about other features when simplification takes place. https://github.com/mapbox/mapnik-vector-tile/blob/master/src/vector_tile_geometry_simplifier.hpp#L32

@e-n-f
Copy link
Contributor

e-n-f commented Jan 23, 2018

I don't do anything special in Tippecanoe with MultiPoints (it either includes or drops the entire feature) but I probably should. I got into the habit of thinking that nobody used MultiPoint geometries because Mapnik would only render the first point (not sure if that's still true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants