NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I have only roads data from US, Canada and Mexico in my DB imported using osm2pgsql. As it is mentioned in the osmupdate wiki page here

You need to update the OSM file of a small geographical region every other week. Do not use osmupdate. Redownload the file from one of the OSM file services, e.g.

Since I want to keep my db size as small as possible. will it be a good idea to do the following on a weekly basis

1 - Download the osm.pbf file

2 - convert to o5m (this step is for osm filter)

3 - filter for only road data

4 - import using osm2pgsql in slim mode using --drop

Any feedback will be highly appreciated

asked 03 Aug '17, 17:28

aitizazk's gravatar image

accept rate: 0%

edited 03 Aug '17, 17:29

I'm not sure why you don't simply change your file to only import road data, the main issue that even with that your database will grow due to edits outside of the area you imported (there are however a couple of ways to work around that).

permanent link

answered 03 Aug '17, 19:08

SimonPoole's gravatar image

SimonPoole ♦
accept rate: 18%

Can you guide me regarding the work around?

(04 Aug '17, 10:46) aitizazk

One possible workaround is to use from Zverik . That's really simple to use (just call it with the parameters you need to trim the update file down). There's an example of its use described at .

(04 Aug '17, 11:55) SomeoneElse ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 03 Aug '17, 17:28

question was seen: 1,973 times

last updated: 04 Aug '17, 11:55

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum