TransWikia.com

Generating customized vector OSM map files from OpenStreetMap and other data?

Geographic Information Systems Asked by sweiss on June 27, 2021

I am looking for a way (e.g. tutorial?) to generate my own customized (offline) maps in OSM format. By “customized” I mean adding data (not just define a region of interest) to an existing OSM map (e.g. OpenTopoMap), then export the augmented map into a new .osm-file.

What I managed to do:

  • load OSM maps (e.g. OpenTopoMap) in QGIS, download the canvas into an .osm-file and convert it to a sqlite db, and import points, polygons, polylines
  • load other data into QGIS (e.g. manually generated (vector) points)
  • export the canvas to tiles using QTiles either to a directory or to a .mbtiles-file. However, this is the critical point: this export is way too large and the resolution of the tiles is bad, so I am looking to export the canvas in the vectorized form

How can I augment maps in OSM format with own data and store it as a new (vector) .osm-file?

Preferably in QGIS, other programs are fine as long as they are free and run in Linux. The full style e.g. the shading in OpenTopoMap and the elevation curves should be preserved.

One Answer

Given your response to my comment, you could try FME.

NB: I work for the people who make FME

It's free for non-commercial use. Anyway, here's what it would look like if I added extra emergency data to an OSM layer:

enter image description here

After installing (yes there is a Linux version)...

  1. Start Workbench. Press Ctrl+G to set up an OSM to OSM translation
  2. In the translation, press Ctrl+Alt+R to add a reader to read the additional data
  3. Just map the additional data into the OSM output layers

There's probably more work to it than that, depending on how you want to map the data/attributes, and what OSM layers allow which geometries. I know a little about OSM data structures but am not expert. Still I can get data into an OSM file in some form fairly easily. I think it's a good starting point, and there are other supported formats that may be of use too.

Answered by Mark Ireland on June 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP