osm.pbf -> svg/png ( without db server/ ohne DB Server)

------------- ENGLISH (Deutsch, siehe unten!): -------------

Hello dear community!

Is above possible?

Perhaps via SpatiaLite or Python/ C++ libraries (GDAL?)

I develop a GUI application and my objective is to provide the following:

  • The application automatically updates a locally stored *.osm.pbf file by consideration of diff update files.
  • A locally updated *.osm.pbf file is post-processed (shrinked) via osmconvert and osmfilter
  • The application renders needed image areas (png tiles or svg [preferred]) on the fly without the need of a locally installed database server.

Therefore, sqlite respectively SpatiaLite are acceptable.

What about Mapnik as tool to render directly from a *.osm.pbf file?

The wiki mentions it, but describes Mapnik reading data from PostGIS only?!

Any recommendations, advices? Ist that approach described above achievable?

Thanks in advance
joomie

------------- GERMAN: -------------

Hallo liebe Gemeinde!

Ist Obiges (Betreff) möglich?

Ggf. via SpatiaLite oder Python/ C++ Bibliotheken (GDAL?)

Ich entwickle eine GUI-Applikation und mein Ziel ist es, Folgendes anzubieten:

  • Die Anwendung soll eine lokal gespeicherte *.osm.pbf-Datei automatisch aktualisieren, indem diff Aktualisierungen berücksichtigt werden.
  • Eine lokal aktualisierte *.osm.pbf-Datei wird mit osmconvert und osmfilter nachbearbeitet (verkleinert).
  • Die Anwendung rendert benötigte Bildareale (png Kacheln oder svg [bevorzugt]) on the fly und ohne einen lokal installierten Datenbankserver.

Aus diesem Grund wäre sqlite bzw. SpatiaLite akzeptierbar.

Was ist mit Mapnik als Werkzeug zum direkten Rendern anhand einer *.osm.pbf-Datei?

Das Wiki erwähnt so etwas, beschreibt Mapnik jedoch nur im Zusammenhang eines Lesens von Daten aus einer PostGIS Datenbank?!

Irgendwelche Emphelungen, Hinweise? Ist dieses oben beschriebene Ziel erreichbar?

Vielen lieben Dank
joomie

Look at the OsmPlugin for Mapnik. https://github.com/mapnik/mapnik/wiki/OsmPlugin
It can read directly from a .osm file, without a database.

hello joomie,

All possibilities to produce images from OSM data should be collected at the OSM wiki page http://wiki.openstreetmap.org/wiki/Rendering

examine yourself which program needs a database or can eat OSM data directly. Often, Maperitive is well mentioned.

If not happened yet, you can also ask in the high frequent german subforum here …

Hi!

Thanks fpr your advices, https://www.gaia-gis.it/fossil/spatialite-tools/wiki?name=spatialite_osm_map seems to be what I am looking for.
I really searched several days to find a solution for what I am lokking for… :confused:

Greetings from Hamburg (Germany)
joomie