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

I am trying to create a docker container which can be run on docker to host a local mapserver, the problem i am facing is even with a small country data like bhutan-latest-osm.pbf which is around 200MB large, the docker container's size is shooting up to 4.5GB, this is just for development in actual case i would be using the planet-latest-osm.pbf which is supposed to use up 1.5TB of secondary storage. The important thing here to note is that i would need only zooming until city level, i.e i don't want zooming till street or area level within the map. I'm a newbie to this.

asked 18 Jan '18, 10:55

kumard's gravatar image

kumard
11113
accept rate: 0%

I don't think you need 1.5TB for a planet file. One of the osm2pgsql developers has a blog post about how much space is needed and says ~<600GB is needed for a planet import.

(18 Jan '18, 12:03) rorym

Once you've downloaded a planet file or an extract, you can relatively easily only keep certain data that you're interested in or remove certain data that you're definitely not interested in. Have a look at osmium, osmconvert and osmosis (and other tools linked from those pages).

What you can't easily do is to say "keep only those features that renderers tend to show at a particular zoom level" or "keep only enough nodes so that it still looks sensible at a particular zoom level".

As another data point, a mapserver that I have for the UK and Ireland (just over 1Gb of OSM pbf data) happily fits on a 100Gb SSD, and that's with a wider range of features rendered than OSM's standard style.

What are you actually trying to do? Data analysis? Create a map, and if so in what map style? Routing? Something else?

permanent link

answered 18 Jan '18, 20:53

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

@SomeoneElse I am trying to host a local map server for kibana visualizations which contain maps, the visualizations over there doesn't require city street level zooming, but the restriction over here is the size of the secondary storage is very limited. Hence i have this question.

(19 Jan '18, 04:58) kumard

@SomeoneElse, i am just trying to dreate a map for kibana visualizations, i don't need routing info on the map

(22 Jan '18, 06:37) kumard

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×362
×105
×80

question asked: 18 Jan '18, 10:55

question was seen: 3,001 times

last updated: 22 Jan '18, 06:37

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