Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boydjohnson/osm-2-ndjson
A tool to transform osm pbf files to ndjson
https://github.com/boydjohnson/osm-2-ndjson
Last synced: 11 days ago
JSON representation
A tool to transform osm pbf files to ndjson
- Host: GitHub
- URL: https://github.com/boydjohnson/osm-2-ndjson
- Owner: boydjohnson
- License: mit
- Created: 2019-12-24T16:11:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-15T18:22:51.000Z (about 4 years ago)
- Last Synced: 2024-04-03T01:52:56.290Z (8 months ago)
- Language: Rust
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A simple cli tool for turning osm.pbf files into ndjson
### usage
```
osm-2-ndjson 0.1.0
cli tool to turn osm.pbf files into ndjsonUSAGE:
osm-2-ndjson [SUBCOMMAND]FLAGS:
-h, --help Prints help information
-V, --version Prints version informationSUBCOMMANDS:
count Displays counts of nodes, ways, relations and related tags
help Prints this message or the help of the given subcommand(s)
to-ndjson Write nodes and ways as ndjson GeoJson to stdout
```#### osm-2-ndjson to-ndjson
```
osm-2-ndjson-to-ndjson
Write nodes and ways as ndjson GeoJson to stdoutUSAGE:
osm-2-ndjson to-ndjson [OPTIONS]FLAGS:
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
-t, --tags Filter only tags that match. '+' is 'and' and ',' is orARGS:
filename of osm.pbf file
```#### osm-2-ndjson count
```
osm-2-ndjson-count
Displays counts of nodes, ways, relations and related tagsUSAGE:
osm-2-ndjson count [OPTIONS]FLAGS:
-h, --help Prints help information
-V, --version Prints version informationOPTIONS:
-t, --tags Filter only tags that match. '+' is 'and' and ',' is orARGS:
filename of osm.pbf file
```### Installing
Needs nightly rust compiler as well as:
- a c++ compiler (gcc or clang usually)
- cmakeInstall via cargo
```
cargo +nightly install --git https://github.com/boydjohnson/osm-2-ndjson```
or
```
git clone [email protected]/boydjohnson/osm-2-ndjson.git
cd osm-2-ndjson
cargo build --release
```Soon there will be debian packages