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

Wrong process result when use osmosis to "FILTERING DATA" #148

Open
Dancingmeow opened this issue Jun 28, 2024 · 0 comments
Open

Wrong process result when use osmosis to "FILTERING DATA" #148

Dancingmeow opened this issue Jun 28, 2024 · 0 comments

Comments

@Dancingmeow
Copy link

Dancingmeow commented Jun 28, 2024

I'm trying the example from LearnOSM. However it seems an incorrect result is got.

Filter all schools from sample_osmosis.osm.pbf

rem use osmosis to get result
osmosis --rbf sample_osmosis.osm.pbf --nkv keyValueList="amenity.school" --wx schools.osm

rem use osmconvert to get osm file
osmconvert sample_osmosis.osm.pbf -o=sample_osmosis.osm

rem use osmfilter to get result
osmfilter sample_osmosis.osm --keep="amenity=school" -o=schools2.osm

Open a text edit to search tag <tag k="amenity" v="school"/>

Tools Filename Tag count
- sample_osmosis.osm 78
osmosis schools.osm 55
osmfilter schools2.osm 78

I'm not sure the reason why this happened. Any idea?

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