GithubHelp home page GithubHelp logo

stackbox-dev / kartor-osmium-filter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osmcode/osmium-filter

0.0 0.0 0.0 321 KB

Fast filter for OSM data

C++ 96.67% Python 0.16% CMake 3.11% Dockerfile 0.07%

kartor-osmium-filter's Introduction

Osmium Filter

Work-in-progress experimental fast and flexible filter for OSM data.

Do not use this for production work. The expression language (see below) will change!

Dependencies

Building

Then in the osmium-filter directory:

mkdir build
cd build
cmake ..
make

The osmium-filter binary is created in the src directory.

Run

Usage:

osmium-filter INPUT-FILE -o OUTPUT-FILE -e FILTER-EXPRESSION

or

osmium-filter INPUT-FILE -o OUTPUT-FILE -E FILTER-EXPRESSION-FILE

Will filter out only the OSM objects matching the expressions. Call with -w to add all nodes referenced by any matching ways. (This will read the input twice.)

Call with --help to get usage info.

Expression Language

No real documentation yet, but this will give you some ideas:

A or B
A and B
not A

highway     Tag key exists

"highway"   Tag key exists

highway = residential

@id=        Compare object ID
@id!=
@id<
@id>
@id<=
@id>=

@version    Same for version
...

@uid        User ID

@changeset  Changeset ID

@nodes      Number of nodes

@members    Number of members

@tags       Number of tags

123         ID (same as @id=)

@type=node
node

@type=way
way

@type=relation
relation

kartor-osmium-filter's People

Contributors

joto avatar saby1101 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.