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

Filter the OSM entities by bounding box and tags when importing data #784

Open
cmahnke opened this issue Sep 14, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@cmahnke
Copy link

cmahnke commented Sep 14, 2023

Disclaimer: I do not know if these features are implemented, if not, consider this as a feature request:

Provide an example to filter data, for example before or during database import. For example for OSM.

  • By bounding box - Use cases are extracting just a city or some states (like BeNeLux) that aren't provided as GeoFabrik exports. Maybe the Overpass API could help, but getting huge datasets might fail.
  • By Type, like shop, aerialway, railway - you get the point.

This would be quite useful to reduce the database size by ignoring unwanted data.

If those features exist, this issue might be moved to https://github.com/apache/incubator-baremaps-site

[Update]
osmium and maybe Osmosis can do the filtering, but Im not sure if the license is compatible for direct inclusion. May there could be some sort of exec workflow step?

@bchapuis bchapuis changed the title Document more examples Tilter the OSM entities by bounding box and tags when importing data Sep 15, 2023
@bchapuis
Copy link
Member

Filtering is a good idea! I think we will have to add additional parameter to the ImportOSM step. As we use the Stream API, this kind of filter could be plugged at the level of the parser.

@bchapuis bchapuis added the enhancement New feature or request label Sep 15, 2023
@bchapuis bchapuis changed the title Tilter the OSM entities by bounding box and tags when importing data Filter the OSM entities by bounding box and tags when importing data Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants