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

Render oceans #1

Open
tmcw opened this issue Jan 2, 2023 · 2 comments
Open

Render oceans #1

tmcw opened this issue Jan 2, 2023 · 2 comments

Comments

@tmcw
Copy link
Collaborator

tmcw commented Jan 2, 2023

Right now one of the most annoying things about this plugin is that it doesn't render water areas properly. I'm not 100% sure how to do this - need to do some spelunking in iD. The solution probably isn't something like downloading the entire relation, because relations are gigantic. But maybe it's winding order or something like that?

@tmcw
Copy link
Collaborator Author

tmcw commented Jan 10, 2023

@tmcw
Copy link
Collaborator Author

tmcw commented Jan 11, 2023

I think the solution is going to be the osmdata polygons, and then ignore all coastlines in the osm data, request polys by tile number, clip the polys, voila. Uploaded them to both R2 and S3, for some reason, next steps:

  • Set up worker to request from R2
  • Add FlatGeobuf to backend code
  • Calculate tile numbers on backend
  • Request & draw

And, maybe, as might be necessary, clip at some stage here to make sure the polygons are not gigantic.

@tmcw tmcw changed the title Render water relations properly Render oceans Jan 16, 2023
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

1 participant