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

Is there a method to get all objects? #232

Open
PierreMesure opened this issue Apr 4, 2024 · 0 comments
Open

Is there a method to get all objects? #232

PierreMesure opened this issue Apr 4, 2024 · 0 comments

Comments

@PierreMesure
Copy link

Is your feature request related to a problem? Please describe.

Thank you for this very useful library!
I'm currently trying to export all the objects that have a certain property (addr:postcode) in an OSM PBF file.
In order to save memory, I started by creating a small file using osmium and it seems to work great! I use the following command:

osmium tags-filter ./data/sweden-latest.osm.pbf nwr/addr:postcode -o ./data/extract.osm.pbf

I've managed to extract all buildings from this file using osm.get_buildings() but it's still unclear to me whether that returns all objects in the file. From what I understand, there are things that are not buildings and I'd like to get them as long as they have the desired property.

Describe the solution you'd like

What I'm looking for is maybe doable with the osm.get_data_by_custom_criteria() function but I haven't been able to find the right parameters. The function always returns None.

So I'm either looking for more documentation or for a new feature that just returns everything osm.get_all(). If that makes sense?..

Thanks in advance for you answer and sorry if it sounds stupid. I've thoroughly read the documentation and been through some of the source code before asking here. 🙂

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