Skip to content

Convert osm pbf files into a format that can be used in peermaps.

Notifications You must be signed in to change notification settings

peermaps/ingest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peermaps-ingest

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.

command-line usage

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)

install

To get the command-line program:

cargo install peermaps-ingest

About

Convert osm pbf files into a format that can be used in peermaps.

Resources

Stars

Watchers

Forks

Packages

No packages published