OpenStreetMap

Creating a ground map (Schwarzplan)

Posted by 13 digits on 31 October 2017 in English.

Maybe I think creating a new map style is quite easy for someone who is experienced with coding new styles. To be honest I really do not know the amount of work nor if you need server to render a new map style. Since quite a time I am looking for a map style that shows only buildings which are ilustrated in black. Not more, not less. No streets, no water bodies, no green areas. In architecture its called ground map (in german: Schwarzplan) and should give you a better visualisation of the structure of a town. Due to these structures it gives you also a reference of the historical development of a city. The often refered website (www.der-geograph.de) is a good posibility to render areas with the above mentioned style. My question to the OSM-Community is if it is not possible to create a map style which makes it obsolete to render areas tile by tile which takes ages like on that website.

Discussion

Comment from -karlos- on 31 October 2017 at 17:00

A renderer with a good style file should do it easily. This should be a job for a vector-tiles client side renderer.

I have added a view lines of code to my gadget. Is this about whar you need: http://osmgo.org?lat=53.07500&lon=8.78310&ele=4000&view=-89&dbg=1.5&fps=1.5&tiles=10 “Schwarzplan” activated by adding “&fps=1.5” to the url. We should talk about the details.

Schwarzplan

Comment from Nakaner on 31 October 2017 at 18:53

There is a plenty of results if you google “Schwarzplan OpenStreetMap”. Because you mention the German term, I am sure that you are able to read German forum discussions, e.g. this.

Comment from 13 digits on 31 October 2017 at 21:44

I think we can keep on talking in german… ;-)

@ Karlos:Danke für Deine Antwort. Ja, eine solche Karte suche ich. Die Karte baut sich bei mir recht langsam auf.

@ Nakaner: Danke für Deinen Link auf das Forum. Dein Beitrag zu deinem Cadastre Style, der auf Mapiterative Produkten aufbaut geht auch genau in die Richtung. Meine Google-Suchen haben bisher keine Webseite zu Tage gebracht, auf der diese Art von Karten, wie z.B. Dein Cadastre-Style oder ein Schwarzplan zu finden sind und sich auch genau so bedienen lassen. Also z.B. zoomen und den Ausschnitt beliebig verschieben. Ich entnehme deinem Blog, dass ich mit dem Programm Mapiterative mir den Style selbst erstellen kann und mir wahrscheinlich die Karten dann so rendern kann wie es vermutlich auch auf der Seite “der-geograph.de” funktioniert. Meine Frage und Hoffnung war ja, dass es eine Webseite/Mapserver gibt, der einen solchen Style schon anbietet, da es ja doch öfter Thema ist im Forum.

Comment from Nakaner on 31 October 2017 at 21:47

Maperitive ist das Einsteigerprogramm zum Kartenrendern. In dem verlinkten Forenthread findest du sogar den Quellcode eine Schwarzplan-Kartenstils für Maperitive. Alles was du jetzt noch tun musst:

  • Mapertive herunterladen und entpacken
  • OSM-Daten herunterladen und zuschneiden (oder einen Extrakt auf extract.bbbike.org erzeugen lassen), Format: osm.pbf
  • OSM-Daten in Maperitive laden
  • Kartenstil anwenden (ich glaube der Befehl load-ruleset [PARAMETER] gefolgt von apply-ruleset)
  • Karte rendern mit export-png oder export-svg

Weitere Details findest du in Tutorials sowie in der Maperitive-Dokumentation.

Comment from -karlos- on 2 November 2017 at 16:59

@13 digits: Yes, its slow because it is not optimised or rather a misuse of a 3D renderer for that purpose. And “OSM go” does not have vector tiles, just a lot of overpass calls.

I just did it to boast (angeben) my geniousity to add just 3 lines of code and have a “Schwarzplan” ;-)

Heathrow London

Log in to leave a comment