-
Notifications
You must be signed in to change notification settings - Fork 120
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
Cull features from places layer based on grid #1999
Comments
This can be implemented as a post processing step, similar to what we do here to "keep_n_features"
That function is implemented here: I recommend duplicating that function and adding grid logic to it, with the grid spacing configurable. If it goes well we could later migrate the existing "keep_n_features" transfoms in queries.yaml to the new functions. |
This zoom 7/113/50 parent tile of the example above at 512 pixel size has 724 places features, of which all but 8 are locality points. It should only have a few dozen features total. |
GeoJSON from Overpass for approximately the same area to use for tests (most of those properties don't need to be kept): |
Closed via #2001. |
Followup in #2040. |
kind_detail
values (eg city, town, village) which we map tomin_zoom
, and most havepopulation
values. But there are sometimes hundreds when just a handful can end up being labeled. We can't select by population ranked via zoom because that would leave the more rural areas of the map looking empty. So instead we need to cull features based on a grid that roughly matches how many features we could actually label in a given tile.That same area via Overpass Turbo:
Helpful queries:
The text was updated successfully, but these errors were encountered: