omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
723 stars 158 forks source link

Add new command to create generalized tables #218

Open pnorman opened 4 years ago

pnorman commented 4 years ago

It would be useful when importing to be able to split the generalization off from the import stage.

When we have a database that has existed for some time, being updated regularly, it would be useful to update the generalized without needing to do a full reimport.

zstadler commented 2 years ago

@pnorman, @moodstubos, Was this issue already addressed?

When using imposm 0.11.1 to run imposm diff, it prints Updating generalized tables:

[2022-04-14T07:00:43Z] 0:00:04 [step] Starting: Processing /import/changes.osc.gz
[2022-04-14T07:00:43Z] 0:00:04 [step] Starting: Parsing changes, updating cache and removing elements
[2022-04-14T07:00:54Z] 0:00:14 [step] Finished: Parsing changes, updating cache and removing elements in 10.5643517s
[2022-04-14T07:00:54Z] 0:00:14 [step] Starting: Importing added/modified elements
[2022-04-14T07:00:54Z] 0:00:14 [progress]    10s C:       0/s (35384) N:       0/s (21) W:       0/s (433) R:      0/s (26)
[2022-04-14T07:01:02Z] 0:00:22 [step] Starting: Updating generalized tables
[2022-04-14T07:01:02Z] 0:00:22 [step] Finished: Updating generalized tables in 23.2597ms
[2022-04-14T07:01:54Z] 0:01:14 [progress]   1m0s C:       0/s (0) N:       0/s (22) W:       0/s (106) R:      0/s (21)
[2022-04-14T07:01:57Z] 0:01:17 [step] Finished: Importing added/modified elements in 1m2.7701817s
[2022-04-14T07:01:57Z] 0:01:17 [progress]   1m2s C:       0/s (0) N:       0/s (22) W:       0/s (106) R:      0/s (21)
[2022-04-14T07:01:57Z] 0:01:17 [step] Finished: Processing /import/changes.osc.gz in 1m13.3705493s