Skip to content

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

@Dancingmeow

Description

@Dancingmeow

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions