incubator-baremaps
incubator-baremaps copied to clipboard
Filter the OSM entities by bounding box and tags when importing data
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?
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.