-
-
Notifications
You must be signed in to change notification settings - Fork 199
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 clustering #753
Comments
@zakjan I have not had to do clustering server-side yet, but it looks like the functions you need are availalbe in PostGIS. Have you played with ST_ClusterDBSCAN yet? If you do dive into using this function, I would be interested in seeing the solution you come up with as I think it could help others. I'm happy to help with the research if need be. |
@zakjan did you ever get anywhere with serverside clustering? I would love to hear your progress if you did. |
Definitely possible. Say you have a bunch of points in your provider. You create two layers.
Then building your map, you use the first layer with the center points of the clusters from zoom level x to y and the second layer from y to z. For static geometry data I suggest to create the cluster center points and store them in the database. For infrequently changing point data I suggest caching and for frequently changing data I suggest either a big database instance or another approach. |
@iwpnd thats a really clever idea! I’ve got relatively static data AND a big database server, so I think I can cache these clusters in the db and judiciously update with triggers. Thanks for the insight! 🙂 |
@ARolek @edtjones I created an example over at iwpnd/tegola-cluster-points. I didn't really bother with performance here but from what I can see, this seems viable. |
Wow - great! Thanks Ben.
… On 5 Feb 2022, at 15:36, Ben ***@***.***> wrote:
I created an example over at iwpnd/tegola-cluster-points. I didn't really bother with performance here but from I can see, this seems viable.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.
|
I'm going to close this issue for now. Thanks for helping @iwpnd |
Is it possible to implement server-side point clustering with Tegola, for use cases with high point count and low zoom level?
Currently it's possible with custom implemented Node.js service using supercluster and vt-pbf, connected to PostGIS data source. I'm looking for an out-of-the-box solution.
The text was updated successfully, but these errors were encountered: