-
Notifications
You must be signed in to change notification settings - Fork 137
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
Updating lake centerlines #354
Comments
Thanks. Yes, there is a plan to figure it out. Do you have some measured time, how long it takes to regenerated osm-lakeline on your use case? |
I have started doing a run from a planet.osm.pbf-loaded database on AWS (m5.24xlarge, 96 cores) and also on local machine (AMD Ryzen9 3950x, 12 cores) to get some numbers. Will post them when they are done. |
The AWS instance finished generating the centerlines (36370 of them in total) in 132 minutes. Will check the local machine tomorrow. |
The local machine finished in 155 minutes with 37544 centerlines (planet.osm.pbf is 2 months newer than AWS instance's). |
@ache051 ideally we should NOT use the lakeline centerlines like we do now. My long term hope was to get rid of it entirely, and instead use the usual PostGIS functions to compute it, possibly generating a materialized view if needed for performance reasons. The current implementation adds significant complexity to the project's ecosystem. |
@nyurik I agree with you 100%. Exporting to shapefile then generate lines is cumbersome. At the time being though it is a stop gap solution for my project. If anybody thinks there is merit, then I will look at if ST_ApproximateMedialAxis can do the trick. |
LOL, the last one is just priceless... I keep thinking what kind of an animal it reminds me of... some dinosaur I suspect :D But the last image does highlight the broken nature of the PostGIS algo it seem? The docs say that |
Hah! It looks like my 2 years old's drawing! |
Is the SFCGAL extension problem? There are some licence blockers? Some comments in openmaptiles/openmaptiles#1150 (comment) Anyway, thanks for looking at it! |
Not much that it is a problem. It's just that I already have a planet-loaded database and didn't want to fiddle around with it. But if there are other components that need SFCGAL, then I am happy to build a docker image and try it out. |
@TomPohys I noted in openmaptiles/openmaptiles#1150 (comment) with link to the original source documentation, that there is no issue with using the SFCGAL extension from a license perspective. Also, it is the same licensing as PostGIS itself, so if PostGIS is OK, then so is SFCGAL :) |
No problem to add SFCGAL into openmaptiles-tools/postgis docker. PR is welcome. |
I have been chipping it away slowly. |
@klokan might know the most about the actual math needed for this |
My opinion on the overall approach -- it is better to have a "good enough" solution for lake centerlines as part of the OMT SQL than to have a "perfect" solution that uses a complex external processing outside of the project. The SQL can be incrementally improved in subsequent pull requests, whereas the external project is essentially frozen, as it requires far more work to make any changes. |
Hi,
The current OMT vectortiles generation routine is still pulling data from Lukas' osm-lakeline released in 2016. Granted lake centerlines don't change much but would still good to update periodically. At the moment I forked Lukas' repository and changed a few lines so centerlines are generated when I run quickstart.sh. Not pretty but does the job.
My question is if there is any plan on either updating the data or incorporating functionality from osm-lakeline into openmaptiles-tools or vectortiles generation routine?
The text was updated successfully, but these errors were encountered: