-
Hello, As you know, whole planet OSM extract is about 62GB (pbf). This may sound a bit weird but I do not need the road network objects in the mbtiles. So, should I still need at least ~128GB ram to perform this operation? If so, how can I create a subset from a PBF or OSM file which will not to include road layers/objects. I've seen Osmfilter tool but couldn't figure how to work with it. Note: I will also include the externally downloaded shapefiles in mbtiles; coastline water polygon and landcover shapes ice, glaciated, urban areas (3files). Thanks for your support! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
You'll need to create a config file which lists the tags you want to retain, then call |
Beta Was this translation helpful? Give feedback.
-
Just another simple question, does Tilemaker also support *.osm as input or it only accepts *pbf ? |
Beta Was this translation helpful? Give feedback.
-
I suggest you create an extract of a small area and perform some testing.
Generally my expectation would be that you will want to exclude much more
tags than you want to keep, so it might make more sense to go with a
positive list.
|
Beta Was this translation helpful? Give feedback.
osmium tags-filter
is faster and easier to use than osmfilter: https://docs.osmcode.org/osmium/latest/osmium-tags-filter.htmlYou'll need to create a config file which lists the tags you want to retain, then call
osmium tags-filter -e configfile.txt -o outputfile.osm.pbf inputfile.osm.pbf
. This will create a new (smaller!) pbf which you can then use in tilemaker.