Skip to content

Commit 52518cb

Browse files
authored
Merge pull request #223 from cayetanobv/master
Readme doc improvements
2 parents 56a8591 + 0dfea31 commit 52518cb

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Readme.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
[![Join the chat at https://gitter.im/pgRouting/osm2pgrouting](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pgRouting/osm2pgrouting?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44

5+
# Table of Contents
6+
7+
* [Requirements](#requirements)
8+
* [Documentation](#documentation)
9+
* [Installation](#installation)
10+
* [How to use](#how-to-use)
11+
* [Tips](#tips)
12+
13+
514
## Requirements
615

716
Before you can use this tool for importing Openstreetmap data you need to install:
@@ -127,3 +136,17 @@ Database options:
127136
-W [ --password ] arg Password for database access.
128137
129138
```
139+
140+
## Tips
141+
142+
Open Street Map (OSM) files contains tags not used at all for routing operations by PgRouting (i.e. author, version, timestamps, etc.). You can reduce a lot the size of your OSM file to import removing this metadata tags from original file (you can get around half size of original file).
143+
144+
The best tool to remove tags is [osmconvert](https://wiki.openstreetmap.org/wiki/Osmconvert).
145+
There are another tools but osmconvert is the fastest parsing osm files.
146+
147+
Example:
148+
```
149+
$ osmconvert output_data.osm.pbf --drop-author --drop-version --out-osm -o=output_data_reduc.osm
150+
```
151+
152+
You can download OSM data as PBF (protobuffer) format. This is a binary format and it has a lower size than OSM raw files (better for downloading operations).

0 commit comments

Comments
 (0)