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

Standardize API handling of ST_Simplify #37

Open
mem48 opened this issue Mar 19, 2018 · 1 comment
Open

Standardize API handling of ST_Simplify #37

mem48 opened this issue Mar 19, 2018 · 1 comment

Comments

@mem48
Copy link
Contributor

mem48 commented Mar 19, 2018

Within the SQL we call St_Simplify(geometry, tolerance) to reduce the complexity of geometries, and thus reduce the amount of data sent to the browsers. Currently, each layer handles this independently and differently.

I suggest a standardised approach based on this table:

Zoom Simplify
11 0.00412
12 0.00206
13 0.00103
14 0.00052

This should ensure that at any zoom level the geometries do not drift more than about 10 pixels for their expected location. Which is just about noticeable without causing significant changes at each zoom level.

@Robinlovelace
Copy link
Contributor

Sounds good.

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

2 participants