{"id":19010870,"url":"https://github.com/osmcode/osmium-filter","last_synced_at":"2025-04-22T23:25:04.395Z","repository":{"id":145468873,"uuid":"68905836","full_name":"osmcode/osmium-filter","owner":"osmcode","description":"Fast filter for OSM data","archived":false,"fork":false,"pushed_at":"2021-11-22T11:05:29.000Z","size":318,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-17T14:39:13.750Z","etag":null,"topics":["openstreetmap"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osmcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-09-22T09:26:18.000Z","updated_at":"2025-02-18T14:15:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"403830a0-fb27-426d-8092-926ad4d564a4","html_url":"https://github.com/osmcode/osmium-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmcode%2Fosmium-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osmcode","download_url":"https://codeload.github.com/osmcode/osmium-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250338953,"owners_count":21414276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openstreetmap"],"created_at":"2024-11-08T19:12:44.342Z","updated_at":"2025-04-22T23:25:04.388Z","avatar_url":"https://github.com/osmcode.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Osmium Filter\n\nWork-in-progress experimental fast and flexible filter for OSM data.\n\nDo not use this for production work. The expression language (see below) will change!\n\n## Dependencies\n\n* [libosmium](https://github.com/osmcode/libosmium)\n\n\n## Building\n\nThen in the osmium-filter directory:\n\n    mkdir build\n    cd build\n    cmake ..\n    make\n\nThe `osmium-filter` binary is created in the `src` directory.\n\n\n## Run\n\nUsage:\n\n    osmium-filter INPUT-FILE -o OUTPUT-FILE -e FILTER-EXPRESSION\n\nor\n\n    osmium-filter INPUT-FILE -o OUTPUT-FILE -E FILTER-EXPRESSION-FILE\n\nWill filter out only the OSM objects matching the expressions. Call with `-w`\nto add all nodes referenced by any matching ways. (This will read the input\ntwice.)\n\nCall with `--help` to get usage info.\n\n\n## Expression Language\n\nNo real documentation yet, but this will give you some ideas:\n\n    A or B\n    A and B\n    not A\n\n    highway     Tag key exists\n\n    \"highway\"   Tag key exists\n\n    highway = residential\n\n    @id=        Compare object ID\n    @id!=\n    @id\u003c\n    @id\u003e\n    @id\u003c=\n    @id\u003e=\n\n    @version    Same for version\n    ...\n\n    @uid        User ID\n\n    @changeset  Changeset ID\n\n    @nodes      Number of nodes\n\n    @members    Number of members\n\n    @tags       Number of tags\n\n    123         ID (same as @id=)\n\n    @type=node\n    node\n\n    @type=way\n    way\n\n    @type=relation\n    relation\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmcode%2Fosmium-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosmcode%2Fosmium-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmcode%2Fosmium-filter/lists"}