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

Implement filtering using osm2pgsql import #102

Open
marekcuchy opened this issue Nov 13, 2024 · 0 comments
Open

Implement filtering using osm2pgsql import #102

marekcuchy opened this issue Nov 13, 2024 · 0 comments

Comments

@marekcuchy
Copy link
Contributor

marekcuchy commented Nov 13, 2024

It can be done using flex output byt filtering ways by tags and then removing (or ignoring) the unused nodes.

It can greatly improve the usability since it would not be necessary to use osmium.

However, for large maps, it could take a long time to import (or it would not fit into memory). In such cases the user can always use osmium,

We can also add filtering of relations and include (only) the relation members. See these two links for examples: link1, link2. Focus on function select_relation_members that returns node and way ids that should be processed in the second stage (can be checked via osm2pgsql.stage). Unfortunately, I did not find an equivalent for ways.

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