@@ -38,9 +38,8 @@ The easiest option to use PgOSM-Flex is with the
38
38
The image has all the pre-reqs installed, handles downloading an OSM subregion
39
39
from Geofabrik, and saves an output ` .sql ` file with the processed data
40
40
ready to load into your database(s).
41
-
42
- The script in the Docker image uses ` PGOSM_DATE ` to enable the Docker process
43
- to archive source PBF files and easily reload them at a later date.
41
+ The PBF/MD5 source files are archived by date with the ability to
42
+ easily reload them at a later date.
44
43
45
44
46
45
### Basic Docker usage
@@ -97,18 +96,36 @@ docker exec -it \
97
96
--subregion=district-of-columbia
98
97
```
99
98
100
-
101
99
The initial output with the ` docker exec ` command points to the log file
102
100
(linked in the ` docker run ` command above), monitor this file to track
103
101
progress of the import.
104
102
105
-
106
103
``` bash
107
104
Monitor /app/output/district-of-columbia.log for progress...
108
105
If paths setup as outlined in README.md, use:
109
106
tail -f ~ /pgosm-data/district-of-columbia.log
110
107
```
111
108
109
+ The above command takes roughly 1 minute to run if the PBF for today
110
+ has already been downloaded.
111
+ If the PBF is not downloaded it will depend on how long
112
+ it takes to download the 17 MB PBF file + ~ 1 minute processing.
113
+
114
+ The output ` .sql ` file is saved under
115
+ ` ~/pgosm_data/pgosm-flex-north-america-us-district-of-columbia-run-all.sql ` .
116
+ This ` .sql ` file can be loaded into a PostGIS enabled database
117
+ using:
118
+
119
+ ``` bash
120
+ psql -d postgres -c " CREATE DATABASE myosm;"
121
+ psql -d myosm -c " CREATE EXTENSION postgis;"
122
+ ```
123
+
124
+ ``` bash
125
+ psql -d myosm \
126
+ -f ~ /pgosm-data/pgosm-flex-north-america-us-district-of-columbia-run-all.sql
127
+ ```
128
+
112
129
113
130
### After processing
114
131
0 commit comments