diff options
author | Alexander NeonXP Kiryukhin <a.kiryukhin@mail.ru> | 2019-06-03 13:59:49 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <a.kiryukhin@mail.ru> | 2019-06-03 13:59:49 +0300 |
commit | c36227104708bf48c95d2b61ba9176370eb0baf5 (patch) | |
tree | 47e0a0373956556955f1dcfb8f00421a6c714025 /README.md | |
parent | 2f4b6e90597784a8a7c01027e0ff5c6b69634a96 (diff) |
Filter deleted objects
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -4,22 +4,22 @@ Simple loader from osm dump file to mongodb. Based on https://github.com/paulmac ## Build -`go build -o osm2go` +`go build -o osm2mgo` ## Usage -`./osm2go -osmfile=PATH_TO_OSM_FILE` +`./osm2mgo flags` -All flags: +### Flags: -* `-osmfile` (required) OSM file -* `-initial` (default:false) Is initial import (uses insert, not upsert) -* `-indexes` (default:false) Create indexes (needs only first time) -* `-dbconnection` (default:"mongodb://localhost:27017") Mongo database name -* `-dbname` (default:"map") Mongo database name -* `-layers` (default:"nodes,ways,relations") Layers to import -* `-block` (default:1000) Block size to bulk write -* `-concurrency` (default:32) Concurrency read and write +* `-osmfile string` Path to OSM file (PBF format only) (default "./RU.osm.pbf") +* `-dbconnection string` Mongo database name (default "mongodb://localhost:27017") +* `-dbname string` Mongo database name (default "map") +* `-initial` Is initial import? +* `-indexes` Create indexes +* `-layers string` Layers to import (default "nodes,ways,relations") +* `-concurrency int` Workers count (default 32) +* `-block int` Block size to bulk write (default 1000) ## Example |