So, my plan is as follows:
- Download
planet-210712.osm.pbf
- Convert it to
planet.o5m
using osmconvert64-0.8.8p.exe
- Extract all the details I need using
osmfilter.exe
(e.g. using this command: osmfilter.exe --keep="natural=coastline or ( boundary=administrative and admin_level=2 )" --drop="maritime=yes or admin_level!=2" planet.o5m > planet.osm
- Possibly simplify the shapes, since current file-size is ~12GB in OSM format.
- Process data with
osm2pgsql.exe
and import it into PostGIS database.
- Serve vector tiles using some web server like
pg_tileserv.exe
.
Now, all this works more/less OK (I tried first on some smaller dataset of Netherlands), but it seems that I cannot get this to extract country names. Not sure if this is some additional display layer, or is this actually part of OSM files?
I'm adding screenshot of the country names that I would like to display, but that I cannot see when I open OSM file in some of the editors. Is there country_3
inside the OSM files? I can find only place=country
.
Is it easy to simplify shapes for natural=coastline
and boundary=administrative
inside OSM, so I can get smaller filesize?
asked
18 Jul '21, 21:07
bojanv55
11●1●1●2
accept rate:
0%