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

[FEATURE] tile_post_process: add "merge" (drop) support for points #995

Open
frodrigo opened this issue Aug 24, 2024 · 2 comments
Open

[FEATURE] tile_post_process: add "merge" (drop) support for points #995

frodrigo opened this issue Aug 24, 2024 · 2 comments

Comments

@frodrigo
Copy link

In the tile_post_process we can merge linestring or polygon. But there is nothing for points.

I see it like dropping points with same tags within a radius (rather than clustering.)

My current issue is with over numerous points generated from point_on_line geometry. I my use case I will even prefer point on merged line string, but looks very specific. (I build map with traffic sign/limitations for road sections.)

@msbarry
Copy link
Contributor

msbarry commented Aug 27, 2024

In the Java API there is a "setPointLabelGrid(size, limit)" utility that lets you cut tiles into a grid and limit the number of points that can appear in each cell in that grid. Would exposing that to the YAML layer work for your use-case?

It's a pretty coarse tool but has worked for most use-cases like this so far. I think a density-based post-processing approach would be good to but wondering if the existing capability would work in your use-case.

@frodrigo
Copy link
Author

Yes, I think that setPointLabelGrid could do the job.

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