Crates.io | peermaps-ingest |
lib.rs | peermaps-ingest |
version | 4.0.1 |
source | src |
created_at | 2021-06-17 05:26:45.464935 |
updated_at | 2022-03-28 07:48:26.766419 |
description | Convert OSM data into the peermaps on-disk format |
homepage | |
repository | https://github.com/peermaps/ingest |
max_upload_size | |
id | 411158 |
size | 127,065 |
Converts OSM data into the peermaps on-disk format.
This is done in two passes of the data. The first pass writes records from a pbf file into a leveldb database keyed by id. The second pass writes all the features that can be rendered into an eyros database with payloads in the georender format.
usage: target/release/peermaps-ingest COMMAND {OPTIONS}
ingest - scans and processes a pbf
-f, --pbf osm pbf file to ingest or "-" for stdin (default)
-e, --edb eyros db dir to write spatial data
-o, --outdir write eyros db in this dir in edb/
--no-ingest-node skip over processing nodes
--no-ingest-way skip over processing ways
--no-ingest-relation skip over processing relations
--defaults Print default values for ingest parameters.
This step will optimize when --optimize is provided.
scan - scans a pbf, outputting a scan file
-f, --pbf osm pbf file to ingest or "-" for stdin (default)
-o, --outdir write a scan file in this dir
--scan_file write scan file with explicit path
ingest-from-scan - process a pbf from an existing scan
-f, --pbf osm pbf file to ingest or "-" for stdin (default)
-e, --edb eyros db dir to write spatial data
-o, --outdir write eyros db in this dir in edb/ and read scan file
--scan_file read scan file with explicit path
--no-ingest-node skip over processing nodes
--no-ingest-way skip over processing ways
--no-ingest-relation skip over processing relations
--defaults Print default values for ingest parameters.
optimize - recursively rebuild tree sections to improve query performance
--optimize=X,Y divide into a grid of X*Y sublevels to rebuild the tree
-e, --edb eyros db dir to write spatial data
-o, --outdir write eyros db in this dir in edb/ and read scan file
-h, --help Print this help message
-v, --version Print the version string (3.0.0)
To get the command-line program:
cargo install peermaps-ingest