<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-CH">
	<id>https://giswiki.ch/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HTan</id>
	<title>Geometa Lab OST - Benutzerbeiträge [de-ch]</title>
	<link rel="self" type="application/atom+xml" href="https://giswiki.ch/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=HTan"/>
	<link rel="alternate" type="text/html" href="https://giswiki.ch/Spezial:Beitr%C3%A4ge/HTan"/>
	<updated>2026-04-29T02:30:58Z</updated>
	<subtitle>Benutzerbeiträge</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50861</id>
		<title>Quiet Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50861"/>
		<updated>2014-05-28T13:48:54Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;quiet style&#039;&#039;&#039;. It is de­signed to serve as a muted back­drop for over­lay­ing data visu­al­iz­a­tions. The goal of a Quiet Map is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
&lt;br /&gt;
Quiet Maps:&lt;br /&gt;
[[Datei:Quiet map1.png|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
[[Datei:Quiet map.png|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* A muted, open-source base layer about Southern California by the Los Angeles Times Data Desk: [http://datadesk.github.io/osm-quiet-la/#9/34.0500/-118.6000 Quiet L.A.] See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
* The author has created a Quiet Style on the map of Singapore using TileMill as seen from the image files.&lt;br /&gt;
&lt;br /&gt;
== QGIS ==&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** Blog &amp;quot;Introducing Quiet L.A.&amp;quot; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/]&lt;br /&gt;
** https://github.com/datadesk/osm-quiet-la&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50860</id>
		<title>Quiet Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50860"/>
		<updated>2014-05-28T13:46:35Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;quiet style&#039;&#039;&#039;. It is de­signed to serve as a muted back­drop for over­lay­ing data visu­al­iz­a­tions. The goal of a Quiet Map is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
&lt;br /&gt;
Quiet Maps:&lt;br /&gt;
[[Datei:Quiet map1.png|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
[[Datei:Quiet map.png|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* A muted, open-source base layer about Southern California by the Los Angeles Times Data Desk: [http://datadesk.github.io/osm-quiet-la/#9/34.0500/-118.6000 Quiet L.A.] See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
== QGIS ==&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** Blog &amp;quot;Introducing Quiet L.A.&amp;quot; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/]&lt;br /&gt;
** https://github.com/datadesk/osm-quiet-la&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50859</id>
		<title>Quiet Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50859"/>
		<updated>2014-05-28T13:45:53Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;quiet style&#039;&#039;&#039;. It is de­signed to serve as a muted back­drop for over­lay­ing data visu­al­iz­a­tions. The goal of a Quiet Map is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
&lt;br /&gt;
Quiet Maps:&lt;br /&gt;
[[Datei:Quiet map1.PNG|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* A muted, open-source base layer about Southern California by the Los Angeles Times Data Desk: [http://datadesk.github.io/osm-quiet-la/#9/34.0500/-118.6000 Quiet L.A.] See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
== QGIS ==&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** Blog &amp;quot;Introducing Quiet L.A.&amp;quot; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/]&lt;br /&gt;
** https://github.com/datadesk/osm-quiet-la&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50858</id>
		<title>Quiet Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50858"/>
		<updated>2014-05-28T13:35:04Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;quiet style&#039;&#039;&#039;. It is de­signed to serve as a muted back­drop for over­lay­ing data visu­al­iz­a­tions. The goal of a Quiet Map is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
&lt;br /&gt;
Quiet Maps:&lt;br /&gt;
[[Datei:Quiet map1.PNG|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* A muted, open-source base layer about Southern California by the Los Angeles Times Data Desk: [http://datadesk.github.io/osm-quiet-la/#9/34.0500/-118.6000 Quiet L.A.] See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
== QGIS ==&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[QGIS]]: &lt;br /&gt;
** Blog &amp;quot;Vintage Map Design using QGIS&amp;quot; [http://anitagraser.com/2013/07/29/vintage-map-design-using-qgis/]&lt;br /&gt;
** Master Thesis by Tabea Probst, ETHZ, 2013 [http://www.ikg.ethz.ch/karto/education/student_works/vert_blocks], see &amp;quot;Schatzkarte&amp;quot; &lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** https://github.com/ajashton/pirate-map&lt;br /&gt;
** https://github.com/Kotaimen/maps-ModernAntique&lt;br /&gt;
* Other showcases:&lt;br /&gt;
** http://kartograph.org/showcase/italia/&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:Quiet_map1.png&amp;diff=50857</id>
		<title>Datei:Quiet map1.png</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:Quiet_map1.png&amp;diff=50857"/>
		<updated>2014-05-28T13:34:08Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:Quiet_map.png&amp;diff=50856</id>
		<title>Datei:Quiet map.png</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:Quiet_map.png&amp;diff=50856"/>
		<updated>2014-05-28T13:33:51Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50855</id>
		<title>Quiet Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50855"/>
		<updated>2014-05-28T13:32:21Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;quiet style&#039;&#039;&#039;. It is de­signed to serve as a muted back­drop for over­lay­ing data visu­al­iz­a­tions. The goal of a Quiet Map is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
&lt;br /&gt;
Quiet Maps:&lt;br /&gt;
[[Datei:TreasureMap.PNG|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* A muted, open-source base layer about Southern California by the Los Angeles Times Data Desk: [http://datadesk.github.io/osm-quiet-la/#9/34.0500/-118.6000 Quiet L.A.] See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
== QGIS ==&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[QGIS]]: &lt;br /&gt;
** Blog &amp;quot;Vintage Map Design using QGIS&amp;quot; [http://anitagraser.com/2013/07/29/vintage-map-design-using-qgis/]&lt;br /&gt;
** Master Thesis by Tabea Probst, ETHZ, 2013 [http://www.ikg.ethz.ch/karto/education/student_works/vert_blocks], see &amp;quot;Schatzkarte&amp;quot; &lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** https://github.com/ajashton/pirate-map&lt;br /&gt;
** https://github.com/Kotaimen/maps-ModernAntique&lt;br /&gt;
* Other showcases:&lt;br /&gt;
** http://kartograph.org/showcase/italia/&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50854</id>
		<title>Quiet Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Quiet_Maps&amp;diff=50854"/>
		<updated>2014-05-28T13:28:46Z</updated>

		<summary type="html">&lt;p&gt;HTan: Die Seite wurde neu angelegt: „This page tries to collect information about maps visualized in &amp;#039;&amp;#039;&amp;#039;vintage style&amp;#039;&amp;#039;&amp;#039;. It is de­signed to serve as a muted back­drop for over­lay­ing data visu…“&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;vintage style&#039;&#039;&#039;. It is de­signed to serve as a muted back­drop for over­lay­ing data visu­al­iz­a­tions. The goal of a Quiet Map is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
&lt;br /&gt;
Quiet Maps:&lt;br /&gt;
[[Datei:TreasureMap.PNG|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* A muted, open-source base layer about Southern California by the Los Angeles Times Data Desk: [http://datadesk.github.io/osm-quiet-la/#9/34.0500/-118.6000 Quiet L.A.] See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
== QGIS ==&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[QGIS]]: &lt;br /&gt;
** Blog &amp;quot;Vintage Map Design using QGIS&amp;quot; [http://anitagraser.com/2013/07/29/vintage-map-design-using-qgis/]&lt;br /&gt;
** Master Thesis by Tabea Probst, ETHZ, 2013 [http://www.ikg.ethz.ch/karto/education/student_works/vert_blocks], see &amp;quot;Schatzkarte&amp;quot; &lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** https://github.com/ajashton/pirate-map&lt;br /&gt;
** https://github.com/Kotaimen/maps-ModernAntique&lt;br /&gt;
* Other showcases:&lt;br /&gt;
** http://kartograph.org/showcase/italia/&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50811</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50811"/>
		<updated>2014-05-27T14:53:42Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Step 1. Download, convert and clip OSM data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]])&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA (see also [[Quiet Maps]])&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/ (&#039;&#039;Quiet L.A.&#039;&#039;)]&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50810</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50810"/>
		<updated>2014-05-27T14:52:30Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Step 1. Download, convert and clip OSM data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]])&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA (see also [[Quiet Maps]])&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/ (&#039;&#039;Quiet L.A.&#039;&#039;)]&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; singapore.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/asia/malaysia-singapore-brunei.html &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc singapore_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50781</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50781"/>
		<updated>2014-05-23T16:23:22Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]])&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA (see also [[Quiet Maps]])&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/ (&#039;&#039;Quiet L.A.&#039;&#039;)]&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50780</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50780"/>
		<updated>2014-05-23T16:23:13Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA (see also [[Quiet Maps]])&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/ (&#039;&#039;Quiet L.A.&#039;&#039;)]&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50779</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50779"/>
		<updated>2014-05-23T16:22:37Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA (see also [[Quiet Maps]]&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/ (&#039;&#039;Quiet L.A.&#039;&#039;)]&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50758</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50758"/>
		<updated>2014-05-22T14:32:53Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [http://datadesk.latimes.com/posts/2012/11/introducing-quiet-la/ (&#039;&#039;Quiet L.A.&#039;&#039;)]&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50757</id>
		<title>3. Micro Mapping Party Rapperswil 2014</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50757"/>
		<updated>2014-05-22T09:04:26Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:The_Geometa_HSR_GP-Team_FS14_small.png||205px|frameless|right|The GP-Team FS14]] &lt;br /&gt;
[[File:2_Mapping_Party_Rapperswil_klein.png||205px|frameless|right|Bilder von der 1. Mapping Party 2009]]&lt;br /&gt;
&lt;br /&gt;
23. May 2014, starting at 14:00h, Building 6 (entry hall/foyer &#039;Seegebäude&#039;, see OSM-Marker-Stele), HSR Hochschule für Technik Rapperswil .&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Mappers pls. fill in your name at [http://doodle.com/fwcb29iv7ht4zke8] (23. Mai only; man spricht auch Deutsch).&lt;br /&gt;
&lt;br /&gt;
== Organization ==&lt;br /&gt;
&lt;br /&gt;
* What&#039;s the motto? &#039;&#039;&amp;quot;Mapping buildings and addresses in and around Rappi (and elsewhere)!&amp;quot;&#039;&#039;&lt;br /&gt;
* When does it start: 23. May 2014, 14:00h&lt;br /&gt;
* Where&#039;s the meeting point? Room/PC-Lab 6.004, Building 6, HSR Hochschule für Technik Rapperswil&lt;br /&gt;
* Who&#039;s the organizer? [[User:Stefan]] (Prof. Stefan Keller from Geometa Lab at IFS, HSR)&lt;br /&gt;
* Who participates? We expect a dozen people, mostly interns from Asia but also mappers from the surroundings.&lt;br /&gt;
* What to bring along? Your GPS and/or your mobile device with fully charged batteries (don&#039;t forget the power charger). Drink and food are offered by the HSR&lt;br /&gt;
&lt;br /&gt;
Participant list:&lt;br /&gt;
# Stefan Keller (organizing team from [[Geometa Lab]] at IFS, HSR) together with &amp;lt;br/&amp;gt;Rafael Krucker and &amp;lt;br/&amp;gt;Tobias Schmitz &lt;br /&gt;
# Wang Kailong &lt;br /&gt;
# Phan Cong Minh (Minh)&lt;br /&gt;
# Chen Xianyao &lt;br /&gt;
# Hao Feng (Hao)&lt;br /&gt;
# Swoo Wei Cheng &lt;br /&gt;
# Liu Guanqun &lt;br /&gt;
# Zhang Ruzhuang &lt;br /&gt;
# Marcel Amsler, HSR&lt;br /&gt;
# Daniel Kolb, HSR&lt;br /&gt;
# Qi Zhang&lt;br /&gt;
# Rolf Furrer, HSR&lt;br /&gt;
# Rolf Hotz, Mapper?&lt;br /&gt;
&lt;br /&gt;
== Programm ==&lt;br /&gt;
&lt;br /&gt;
Tentative(!) Program:&lt;br /&gt;
* 14:00 Arrival at Building 6, HSR Campus Rapperswil&lt;br /&gt;
* 14:10 - 14:30: Instructions&lt;br /&gt;
* 14:30 - 15:30: Mapping outdoor&lt;br /&gt;
* 15:30 - 17:30 Work on PC (Edit)&lt;br /&gt;
* 17:30: Barbecue at &amp;quot;[[Fäschtinsle]]&amp;quot; nearby!&lt;br /&gt;
* ...until 20:20 sunset or open end.&lt;br /&gt;
&lt;br /&gt;
== FAQ == &lt;br /&gt;
&lt;br /&gt;
=== What is OpenStreetMap? ===&lt;br /&gt;
&lt;br /&gt;
See [http://wiki.osm.org/ OpenStreetMap (OSM) Wiki]. The [https://wiki.openstreetmap.org/wiki/Stats#Registered_users statistics] showing the continuous growth of OSM are just stunning.&lt;br /&gt;
&lt;br /&gt;
=== What&#039;s a Mapping Party? ===&lt;br /&gt;
See [http://wiki.osm.org/Mapping_Party] (Was ist eine Mapping Party? siehe [[Micro Mapping Party Rapperswil]]). &lt;br /&gt;
&lt;br /&gt;
===How to Map an Address?=== &lt;br /&gt;
*To be a contributor to OpenStreetMap, firstly register to be an OSM user [https://www.openstreetmap.org/user/new] &lt;br /&gt;
*Addresses can be tagged with addr:housenumber=* and the other addr:* keys. Tags can be added to&lt;br /&gt;
**isolated nodes&lt;br /&gt;
**nodes that are parts of building polygons ( = entrance=*s )&lt;br /&gt;
**building=* polygons&lt;br /&gt;
**on polygons representing the perimeter of the site.&lt;br /&gt;
*Buildings with multiple house numbers - There is currently no consensus on this but here are some possibilities:&lt;br /&gt;
**Create an address node for each housenumber and place each node somewhere on the building outline (or inside the building).&lt;br /&gt;
**Separate the numbers by commas (e.g., &amp;quot;11,13,15&amp;quot;).&lt;br /&gt;
**Specify the range (e.g., &amp;quot;10-95&amp;quot;). This is the preferred method when such a range is officially used for the entire house. You may also use **addr:interpolation=* to describe whether that includes odd, even or all numbers.&lt;br /&gt;
&lt;br /&gt;
=== How to Map a Building? ===&lt;br /&gt;
&lt;br /&gt;
*A single building outline can be created for each building complex or &#039;block&#039;, which may relate to a single detached property, or to a row of individual terraced houses or to some more complex arrangement of properties. It is however better to create a series of linked outlines which share some nodes at the boundary to identify each distinct part of the property.&lt;br /&gt;
&lt;br /&gt;
*Buildings can simply be &#039;&#039;building=yes&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*If the building has an interior courtyard the use a Multipolygon relation to ensure that the courtyard is not rendered as part of the building.&lt;br /&gt;
**Please consider adding house numbers nodes to buildings with tags in &#039;&#039;addr:*=*&#039;&#039;-Namespace:&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;entrance=yes&#039;&#039; (if you know where the entrance is)&lt;br /&gt;
  &#039;&#039;addr:street=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:housenumber=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:postcode=*&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*See http://wiki.osm.org&lt;br /&gt;
&lt;br /&gt;
=== Why &amp;quot;Micro&amp;quot;...? ===&lt;br /&gt;
&lt;br /&gt;
Micro has two meanings in this context: First, it&#039;s about a small party (usually it&#039;s about a weekend) - and second, it&#039;s about micromapping i.e. capturing of small scale features.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Mapping Party]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50756</id>
		<title>3. Micro Mapping Party Rapperswil 2014</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50756"/>
		<updated>2014-05-22T09:04:09Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* How to map a building? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:The_Geometa_HSR_GP-Team_FS14_small.png||205px|frameless|right|The GP-Team FS14]] &lt;br /&gt;
[[File:2_Mapping_Party_Rapperswil_klein.png||205px|frameless|right|Bilder von der 1. Mapping Party 2009]]&lt;br /&gt;
&lt;br /&gt;
23. May 2014, starting at 14:00h, Building 6 (entry hall/foyer &#039;Seegebäude&#039;, see OSM-Marker-Stele), HSR Hochschule für Technik Rapperswil .&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Mappers pls. fill in your name at [http://doodle.com/fwcb29iv7ht4zke8] (23. Mai only; man spricht auch Deutsch).&lt;br /&gt;
&lt;br /&gt;
== Organization ==&lt;br /&gt;
&lt;br /&gt;
* What&#039;s the motto? &#039;&#039;&amp;quot;Mapping buildings and addresses in and around Rappi (and elsewhere)!&amp;quot;&#039;&#039;&lt;br /&gt;
* When does it start: 23. May 2014, 14:00h&lt;br /&gt;
* Where&#039;s the meeting point? Room/PC-Lab 6.004, Building 6, HSR Hochschule für Technik Rapperswil&lt;br /&gt;
* Who&#039;s the organizer? [[User:Stefan]] (Prof. Stefan Keller from Geometa Lab at IFS, HSR)&lt;br /&gt;
* Who participates? We expect a dozen people, mostly interns from Asia but also mappers from the surroundings.&lt;br /&gt;
* What to bring along? Your GPS and/or your mobile device with fully charged batteries (don&#039;t forget the power charger). Drink and food are offered by the HSR&lt;br /&gt;
&lt;br /&gt;
Participant list:&lt;br /&gt;
# Stefan Keller (organizing team from [[Geometa Lab]] at IFS, HSR) together with &amp;lt;br/&amp;gt;Rafael Krucker and &amp;lt;br/&amp;gt;Tobias Schmitz &lt;br /&gt;
# Wang Kailong &lt;br /&gt;
# Phan Cong Minh (Minh)&lt;br /&gt;
# Chen Xianyao &lt;br /&gt;
# Hao Feng (Hao)&lt;br /&gt;
# Swoo Wei Cheng &lt;br /&gt;
# Liu Guanqun &lt;br /&gt;
# Zhang Ruzhuang &lt;br /&gt;
# Marcel Amsler, HSR&lt;br /&gt;
# Daniel Kolb, HSR&lt;br /&gt;
# Qi Zhang&lt;br /&gt;
# Rolf Furrer, HSR&lt;br /&gt;
# Rolf Hotz, Mapper?&lt;br /&gt;
&lt;br /&gt;
== Programm ==&lt;br /&gt;
&lt;br /&gt;
Tentative(!) Program:&lt;br /&gt;
* 14:00 Arrival at Building 6, HSR Campus Rapperswil&lt;br /&gt;
* 14:10 - 14:30: Instructions&lt;br /&gt;
* 14:30 - 15:30: Mapping outdoor&lt;br /&gt;
* 15:30 - 17:30 Work on PC (Edit)&lt;br /&gt;
* 17:30: Barbecue at &amp;quot;[[Fäschtinsle]]&amp;quot; nearby!&lt;br /&gt;
* ...until 20:20 sunset or open end.&lt;br /&gt;
&lt;br /&gt;
== FAQ == &lt;br /&gt;
&lt;br /&gt;
=== What is OpenStreetMap? ===&lt;br /&gt;
&lt;br /&gt;
See [http://wiki.osm.org/ OpenStreetMap (OSM) Wiki]. The [https://wiki.openstreetmap.org/wiki/Stats#Registered_users statistics] showing the continuous growth of OSM are just stunning.&lt;br /&gt;
&lt;br /&gt;
=== What&#039;s a Mapping Party? ===&lt;br /&gt;
See [http://wiki.osm.org/Mapping_Party] (Was ist eine Mapping Party? siehe [[Micro Mapping Party Rapperswil]]). &lt;br /&gt;
&lt;br /&gt;
===How to Map an Address?=== &lt;br /&gt;
*To be a contributor to OpenStreetMap, firstly register to be an OSM user [https://www.openstreetmap.org/user/new] &lt;br /&gt;
*Addresses can be tagged with addr:housenumber=* and the other addr:* keys. Tags can be added to&lt;br /&gt;
**isolated nodes&lt;br /&gt;
**nodes that are parts of building polygons ( = entrance=*s )&lt;br /&gt;
**building=* polygons&lt;br /&gt;
**on polygons representing the perimeter of the site.&lt;br /&gt;
*Buildings with multiple house numbers - There is currently no consensus on this but here are some possibilities:&lt;br /&gt;
**Create an address node for each housenumber and place each node somewhere on the building outline (or inside the building).&lt;br /&gt;
**Separate the numbers by commas (e.g., &amp;quot;11,13,15&amp;quot;).&lt;br /&gt;
**Specify the range (e.g., &amp;quot;10-95&amp;quot;). This is the preferred method when such a range is officially used for the entire house. You may also use **addr:interpolation=* to describe whether that includes odd, even or all numbers.&lt;br /&gt;
&lt;br /&gt;
=== Why &amp;quot;Micro&amp;quot;...? ===&lt;br /&gt;
&lt;br /&gt;
Micro has two meanings in this context: First, it&#039;s about a small party (usually it&#039;s about a weekend) - and second, it&#039;s about micromapping i.e. capturing of small scale features.&lt;br /&gt;
&lt;br /&gt;
=== How to Map a Building? ===&lt;br /&gt;
&lt;br /&gt;
*A single building outline can be created for each building complex or &#039;block&#039;, which may relate to a single detached property, or to a row of individual terraced houses or to some more complex arrangement of properties. It is however better to create a series of linked outlines which share some nodes at the boundary to identify each distinct part of the property.&lt;br /&gt;
&lt;br /&gt;
*Buildings can simply be &#039;&#039;building=yes&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*If the building has an interior courtyard the use a Multipolygon relation to ensure that the courtyard is not rendered as part of the building.&lt;br /&gt;
**Please consider adding house numbers nodes to buildings with tags in &#039;&#039;addr:*=*&#039;&#039;-Namespace:&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;entrance=yes&#039;&#039; (if you know where the entrance is)&lt;br /&gt;
  &#039;&#039;addr:street=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:housenumber=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:postcode=*&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*See http://wiki.osm.org&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Mapping Party]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50755</id>
		<title>3. Micro Mapping Party Rapperswil 2014</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50755"/>
		<updated>2014-05-22T09:03:59Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* How to map an address? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:The_Geometa_HSR_GP-Team_FS14_small.png||205px|frameless|right|The GP-Team FS14]] &lt;br /&gt;
[[File:2_Mapping_Party_Rapperswil_klein.png||205px|frameless|right|Bilder von der 1. Mapping Party 2009]]&lt;br /&gt;
&lt;br /&gt;
23. May 2014, starting at 14:00h, Building 6 (entry hall/foyer &#039;Seegebäude&#039;, see OSM-Marker-Stele), HSR Hochschule für Technik Rapperswil .&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Mappers pls. fill in your name at [http://doodle.com/fwcb29iv7ht4zke8] (23. Mai only; man spricht auch Deutsch).&lt;br /&gt;
&lt;br /&gt;
== Organization ==&lt;br /&gt;
&lt;br /&gt;
* What&#039;s the motto? &#039;&#039;&amp;quot;Mapping buildings and addresses in and around Rappi (and elsewhere)!&amp;quot;&#039;&#039;&lt;br /&gt;
* When does it start: 23. May 2014, 14:00h&lt;br /&gt;
* Where&#039;s the meeting point? Room/PC-Lab 6.004, Building 6, HSR Hochschule für Technik Rapperswil&lt;br /&gt;
* Who&#039;s the organizer? [[User:Stefan]] (Prof. Stefan Keller from Geometa Lab at IFS, HSR)&lt;br /&gt;
* Who participates? We expect a dozen people, mostly interns from Asia but also mappers from the surroundings.&lt;br /&gt;
* What to bring along? Your GPS and/or your mobile device with fully charged batteries (don&#039;t forget the power charger). Drink and food are offered by the HSR&lt;br /&gt;
&lt;br /&gt;
Participant list:&lt;br /&gt;
# Stefan Keller (organizing team from [[Geometa Lab]] at IFS, HSR) together with &amp;lt;br/&amp;gt;Rafael Krucker and &amp;lt;br/&amp;gt;Tobias Schmitz &lt;br /&gt;
# Wang Kailong &lt;br /&gt;
# Phan Cong Minh (Minh)&lt;br /&gt;
# Chen Xianyao &lt;br /&gt;
# Hao Feng (Hao)&lt;br /&gt;
# Swoo Wei Cheng &lt;br /&gt;
# Liu Guanqun &lt;br /&gt;
# Zhang Ruzhuang &lt;br /&gt;
# Marcel Amsler, HSR&lt;br /&gt;
# Daniel Kolb, HSR&lt;br /&gt;
# Qi Zhang&lt;br /&gt;
# Rolf Furrer, HSR&lt;br /&gt;
# Rolf Hotz, Mapper?&lt;br /&gt;
&lt;br /&gt;
== Programm ==&lt;br /&gt;
&lt;br /&gt;
Tentative(!) Program:&lt;br /&gt;
* 14:00 Arrival at Building 6, HSR Campus Rapperswil&lt;br /&gt;
* 14:10 - 14:30: Instructions&lt;br /&gt;
* 14:30 - 15:30: Mapping outdoor&lt;br /&gt;
* 15:30 - 17:30 Work on PC (Edit)&lt;br /&gt;
* 17:30: Barbecue at &amp;quot;[[Fäschtinsle]]&amp;quot; nearby!&lt;br /&gt;
* ...until 20:20 sunset or open end.&lt;br /&gt;
&lt;br /&gt;
== FAQ == &lt;br /&gt;
&lt;br /&gt;
=== What is OpenStreetMap? ===&lt;br /&gt;
&lt;br /&gt;
See [http://wiki.osm.org/ OpenStreetMap (OSM) Wiki]. The [https://wiki.openstreetmap.org/wiki/Stats#Registered_users statistics] showing the continuous growth of OSM are just stunning.&lt;br /&gt;
&lt;br /&gt;
=== What&#039;s a Mapping Party? ===&lt;br /&gt;
See [http://wiki.osm.org/Mapping_Party] (Was ist eine Mapping Party? siehe [[Micro Mapping Party Rapperswil]]). &lt;br /&gt;
&lt;br /&gt;
===How to Map an Address?=== &lt;br /&gt;
*To be a contributor to OpenStreetMap, firstly register to be an OSM user [https://www.openstreetmap.org/user/new] &lt;br /&gt;
*Addresses can be tagged with addr:housenumber=* and the other addr:* keys. Tags can be added to&lt;br /&gt;
**isolated nodes&lt;br /&gt;
**nodes that are parts of building polygons ( = entrance=*s )&lt;br /&gt;
**building=* polygons&lt;br /&gt;
**on polygons representing the perimeter of the site.&lt;br /&gt;
*Buildings with multiple house numbers - There is currently no consensus on this but here are some possibilities:&lt;br /&gt;
**Create an address node for each housenumber and place each node somewhere on the building outline (or inside the building).&lt;br /&gt;
**Separate the numbers by commas (e.g., &amp;quot;11,13,15&amp;quot;).&lt;br /&gt;
**Specify the range (e.g., &amp;quot;10-95&amp;quot;). This is the preferred method when such a range is officially used for the entire house. You may also use **addr:interpolation=* to describe whether that includes odd, even or all numbers.&lt;br /&gt;
&lt;br /&gt;
=== Why &amp;quot;Micro&amp;quot;...? ===&lt;br /&gt;
&lt;br /&gt;
Micro has two meanings in this context: First, it&#039;s about a small party (usually it&#039;s about a weekend) - and second, it&#039;s about micromapping i.e. capturing of small scale features.&lt;br /&gt;
&lt;br /&gt;
=== How to map a building? ===&lt;br /&gt;
&lt;br /&gt;
*A single building outline can be created for each building complex or &#039;block&#039;, which may relate to a single detached property, or to a row of individual terraced houses or to some more complex arrangement of properties. It is however better to create a series of linked outlines which share some nodes at the boundary to identify each distinct part of the property.&lt;br /&gt;
&lt;br /&gt;
*Buildings can simply be &#039;&#039;building=yes&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*If the building has an interior courtyard the use a Multipolygon relation to ensure that the courtyard is not rendered as part of the building.&lt;br /&gt;
**Please consider adding house numbers nodes to buildings with tags in &#039;&#039;addr:*=*&#039;&#039;-Namespace:&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;entrance=yes&#039;&#039; (if you know where the entrance is)&lt;br /&gt;
  &#039;&#039;addr:street=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:housenumber=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:postcode=*&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*See http://wiki.osm.org&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Mapping Party]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50754</id>
		<title>3. Micro Mapping Party Rapperswil 2014</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=3._Micro_Mapping_Party_Rapperswil_2014&amp;diff=50754"/>
		<updated>2014-05-22T09:03:42Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* What&amp;#039;s a Mapping Party? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:The_Geometa_HSR_GP-Team_FS14_small.png||205px|frameless|right|The GP-Team FS14]] &lt;br /&gt;
[[File:2_Mapping_Party_Rapperswil_klein.png||205px|frameless|right|Bilder von der 1. Mapping Party 2009]]&lt;br /&gt;
&lt;br /&gt;
23. May 2014, starting at 14:00h, Building 6 (entry hall/foyer &#039;Seegebäude&#039;, see OSM-Marker-Stele), HSR Hochschule für Technik Rapperswil .&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Mappers pls. fill in your name at [http://doodle.com/fwcb29iv7ht4zke8] (23. Mai only; man spricht auch Deutsch).&lt;br /&gt;
&lt;br /&gt;
== Organization ==&lt;br /&gt;
&lt;br /&gt;
* What&#039;s the motto? &#039;&#039;&amp;quot;Mapping buildings and addresses in and around Rappi (and elsewhere)!&amp;quot;&#039;&#039;&lt;br /&gt;
* When does it start: 23. May 2014, 14:00h&lt;br /&gt;
* Where&#039;s the meeting point? Room/PC-Lab 6.004, Building 6, HSR Hochschule für Technik Rapperswil&lt;br /&gt;
* Who&#039;s the organizer? [[User:Stefan]] (Prof. Stefan Keller from Geometa Lab at IFS, HSR)&lt;br /&gt;
* Who participates? We expect a dozen people, mostly interns from Asia but also mappers from the surroundings.&lt;br /&gt;
* What to bring along? Your GPS and/or your mobile device with fully charged batteries (don&#039;t forget the power charger). Drink and food are offered by the HSR&lt;br /&gt;
&lt;br /&gt;
Participant list:&lt;br /&gt;
# Stefan Keller (organizing team from [[Geometa Lab]] at IFS, HSR) together with &amp;lt;br/&amp;gt;Rafael Krucker and &amp;lt;br/&amp;gt;Tobias Schmitz &lt;br /&gt;
# Wang Kailong &lt;br /&gt;
# Phan Cong Minh (Minh)&lt;br /&gt;
# Chen Xianyao &lt;br /&gt;
# Hao Feng (Hao)&lt;br /&gt;
# Swoo Wei Cheng &lt;br /&gt;
# Liu Guanqun &lt;br /&gt;
# Zhang Ruzhuang &lt;br /&gt;
# Marcel Amsler, HSR&lt;br /&gt;
# Daniel Kolb, HSR&lt;br /&gt;
# Qi Zhang&lt;br /&gt;
# Rolf Furrer, HSR&lt;br /&gt;
# Rolf Hotz, Mapper?&lt;br /&gt;
&lt;br /&gt;
== Programm ==&lt;br /&gt;
&lt;br /&gt;
Tentative(!) Program:&lt;br /&gt;
* 14:00 Arrival at Building 6, HSR Campus Rapperswil&lt;br /&gt;
* 14:10 - 14:30: Instructions&lt;br /&gt;
* 14:30 - 15:30: Mapping outdoor&lt;br /&gt;
* 15:30 - 17:30 Work on PC (Edit)&lt;br /&gt;
* 17:30: Barbecue at &amp;quot;[[Fäschtinsle]]&amp;quot; nearby!&lt;br /&gt;
* ...until 20:20 sunset or open end.&lt;br /&gt;
&lt;br /&gt;
== FAQ == &lt;br /&gt;
&lt;br /&gt;
=== What is OpenStreetMap? ===&lt;br /&gt;
&lt;br /&gt;
See [http://wiki.osm.org/ OpenStreetMap (OSM) Wiki]. The [https://wiki.openstreetmap.org/wiki/Stats#Registered_users statistics] showing the continuous growth of OSM are just stunning.&lt;br /&gt;
&lt;br /&gt;
=== What&#039;s a Mapping Party? ===&lt;br /&gt;
See [http://wiki.osm.org/Mapping_Party] (Was ist eine Mapping Party? siehe [[Micro Mapping Party Rapperswil]]). &lt;br /&gt;
&lt;br /&gt;
===How to map an address?=== &lt;br /&gt;
*To be a contributor to OpenStreetMap, firstly register to be an OSM user [https://www.openstreetmap.org/user/new] &lt;br /&gt;
*Addresses can be tagged with addr:housenumber=* and the other addr:* keys. Tags can be added to&lt;br /&gt;
**isolated nodes&lt;br /&gt;
**nodes that are parts of building polygons ( = entrance=*s )&lt;br /&gt;
**building=* polygons&lt;br /&gt;
**on polygons representing the perimeter of the site.&lt;br /&gt;
*Buildings with multiple house numbers - There is currently no consensus on this but here are some possibilities:&lt;br /&gt;
**Create an address node for each housenumber and place each node somewhere on the building outline (or inside the building).&lt;br /&gt;
**Separate the numbers by commas (e.g., &amp;quot;11,13,15&amp;quot;).&lt;br /&gt;
**Specify the range (e.g., &amp;quot;10-95&amp;quot;). This is the preferred method when such a range is officially used for the entire house. You may also use **addr:interpolation=* to describe whether that includes odd, even or all numbers.&lt;br /&gt;
&lt;br /&gt;
=== Why &amp;quot;Micro&amp;quot;...? ===&lt;br /&gt;
&lt;br /&gt;
Micro has two meanings in this context: First, it&#039;s about a small party (usually it&#039;s about a weekend) - and second, it&#039;s about micromapping i.e. capturing of small scale features.&lt;br /&gt;
&lt;br /&gt;
=== How to map a building? ===&lt;br /&gt;
&lt;br /&gt;
*A single building outline can be created for each building complex or &#039;block&#039;, which may relate to a single detached property, or to a row of individual terraced houses or to some more complex arrangement of properties. It is however better to create a series of linked outlines which share some nodes at the boundary to identify each distinct part of the property.&lt;br /&gt;
&lt;br /&gt;
*Buildings can simply be &#039;&#039;building=yes&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*If the building has an interior courtyard the use a Multipolygon relation to ensure that the courtyard is not rendered as part of the building.&lt;br /&gt;
**Please consider adding house numbers nodes to buildings with tags in &#039;&#039;addr:*=*&#039;&#039;-Namespace:&lt;br /&gt;
&lt;br /&gt;
  &#039;&#039;entrance=yes&#039;&#039; (if you know where the entrance is)&lt;br /&gt;
  &#039;&#039;addr:street=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:housenumber=*&#039;&#039;&lt;br /&gt;
  &#039;&#039;addr:postcode=*&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*See http://wiki.osm.org&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Mapping Party]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Vintage_Maps&amp;diff=50752</id>
		<title>Vintage Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Vintage_Maps&amp;diff=50752"/>
		<updated>2014-05-22T08:28:44Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;vintage style&#039;&#039;&#039;. This means, they look like an old sketchy map, a &#039;&#039;&#039;treasure map (de: Schatzkarte)&#039;&#039;&#039; or a &#039;&#039;&#039;pirate map&#039;&#039;&#039; (de: Piratenkarte), but with own or actual data. &lt;br /&gt;
&lt;br /&gt;
Treasure/Pirate Maps:&lt;br /&gt;
[[Datei:TreasureMap.PNG|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* Treasure Map HSR - A Treasure-Map, created for the [HSR AppQuest 2013 http://appquest.hsr.ch/]: See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[QGIS]]: &lt;br /&gt;
** Blog &amp;quot;Vintage Map Design using QGIS&amp;quot; [http://anitagraser.com/2013/07/29/vintage-map-design-using-qgis/]&lt;br /&gt;
** Master Thesis by Tabea Probst, ETHZ, 2013 [http://www.ikg.ethz.ch/karto/education/student_works/vert_blocks], see &amp;quot;Schatzkarte&amp;quot; &lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** https://github.com/ajashton/pirate-map&lt;br /&gt;
** https://github.com/Kotaimen/maps-ModernAntique&lt;br /&gt;
* Other showcases:&lt;br /&gt;
** http://kartograph.org/showcase/italia/&lt;br /&gt;
&lt;br /&gt;
Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
*A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
&lt;br /&gt;
Suitable fonts/typefaces:&lt;br /&gt;
* [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline]&lt;br /&gt;
* [http://www.fontsquirrel.com/fonts/Mutlu Mutlu]&lt;br /&gt;
&lt;br /&gt;
Point-of-Interests&lt;br /&gt;
*For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
* [[HowTo_OpenStreetMap#OSM-Daten_zu_Karten_aufbereiten|OpenStreetMap]] based on [http://wiki.openstreetmap.org/wiki/List_of_OSM_based_Services#Art art maps]&lt;br /&gt;
* Really old maps...: [http://www.oldmapsonline.org/ OldMapsOnline.org].&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Kartografie]] [[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50751</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50751"/>
		<updated>2014-05-22T08:27:59Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Step 3. Style data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Vintage_Maps&amp;diff=50750</id>
		<title>Vintage Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Vintage_Maps&amp;diff=50750"/>
		<updated>2014-05-22T08:27:03Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;vintage style&#039;&#039;&#039;. This means, they look like an old sketchy map, a &#039;&#039;&#039;treasure map (de: Schatzkarte)&#039;&#039;&#039; or a &#039;&#039;&#039;pirate map&#039;&#039;&#039; (de: Piratenkarte), but with own or actual data. &lt;br /&gt;
&lt;br /&gt;
Treasure/Pirate Maps:&lt;br /&gt;
[[Datei:TreasureMap.PNG|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* Treasure Map HSR - A Treasure-Map, created for the [HSR AppQuest 2013 http://appquest.hsr.ch/]: See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[QGIS]]: &lt;br /&gt;
** Blog &amp;quot;Vintage Map Design using QGIS&amp;quot; [http://anitagraser.com/2013/07/29/vintage-map-design-using-qgis/]&lt;br /&gt;
** Master Thesis by Tabea Probst, ETHZ, 2013 [http://www.ikg.ethz.ch/karto/education/student_works/vert_blocks], see &amp;quot;Schatzkarte&amp;quot; &lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** https://github.com/ajashton/pirate-map&lt;br /&gt;
** https://github.com/Kotaimen/maps-ModernAntique&lt;br /&gt;
* Other showcases:&lt;br /&gt;
** http://kartograph.org/showcase/italia/&lt;br /&gt;
&lt;br /&gt;
Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
*A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
&lt;br /&gt;
Suitable fonts/typefaces:&lt;br /&gt;
* [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline]&lt;br /&gt;
* [http://www.fontsquirrel.com/fonts/Mutlu Mutlu]&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
* [[HowTo_OpenStreetMap#OSM-Daten_zu_Karten_aufbereiten|OpenStreetMap]] based on [http://wiki.openstreetmap.org/wiki/List_of_OSM_based_Services#Art art maps]&lt;br /&gt;
* Really old maps...: [http://www.oldmapsonline.org/ OldMapsOnline.org].&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Kartografie]] [[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Vintage_Maps&amp;diff=50749</id>
		<title>Vintage Maps</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Vintage_Maps&amp;diff=50749"/>
		<updated>2014-05-22T08:26:48Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page tries to collect information about maps visualized in &#039;&#039;&#039;vintage style&#039;&#039;&#039;. This means, they look like an old sketchy map, a &#039;&#039;&#039;treasure map (de: Schatzkarte)&#039;&#039;&#039; or a &#039;&#039;&#039;pirate map&#039;&#039;&#039; (de: Piratenkarte), but with own or actual data. &lt;br /&gt;
&lt;br /&gt;
Treasure/Pirate Maps:&lt;br /&gt;
[[Datei:TreasureMap.PNG|thumb|right|alt=TileMill Screenshot]]&lt;br /&gt;
* Treasure Map HSR - A Treasure-Map, created for the [HSR AppQuest 2013 http://appquest.hsr.ch/]: See [[Making Maps from OpenStreetMap Data]].&lt;br /&gt;
&lt;br /&gt;
Showcases and Tipps:&lt;br /&gt;
* [[QGIS]]: &lt;br /&gt;
** Blog &amp;quot;Vintage Map Design using QGIS&amp;quot; [http://anitagraser.com/2013/07/29/vintage-map-design-using-qgis/]&lt;br /&gt;
** Master Thesis by Tabea Probst, ETHZ, 2013 [http://www.ikg.ethz.ch/karto/education/student_works/vert_blocks], see &amp;quot;Schatzkarte&amp;quot; &lt;br /&gt;
* [[TileMill]]:&lt;br /&gt;
** https://github.com/ajashton/pirate-map&lt;br /&gt;
** https://github.com/Kotaimen/maps-ModernAntique&lt;br /&gt;
* Other showcases:&lt;br /&gt;
** http://kartograph.org/showcase/italia/&lt;br /&gt;
&lt;br /&gt;
Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
&lt;br /&gt;
Suitable fonts/typefaces:&lt;br /&gt;
* [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline]&lt;br /&gt;
* [http://www.fontsquirrel.com/fonts/Mutlu Mutlu]&lt;br /&gt;
&lt;br /&gt;
See also: &lt;br /&gt;
* [[HowTo_OpenStreetMap#OSM-Daten_zu_Karten_aufbereiten|OpenStreetMap]] based on [http://wiki.openstreetmap.org/wiki/List_of_OSM_based_Services#Art art maps]&lt;br /&gt;
* Really old maps...: [http://www.oldmapsonline.org/ OldMapsOnline.org].&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:Kartografie]] [[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50748</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50748"/>
		<updated>2014-05-22T07:33:28Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
  Datei:Hand_drawn_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50747</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50747"/>
		<updated>2014-05-22T07:33:09Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a handbook - a how to/knowhow page - about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
&lt;br /&gt;
If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others (see gallery).&lt;br /&gt;
&lt;br /&gt;
If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
&lt;br /&gt;
See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at the official OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
NOTE: &#039;&#039;This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
  Datei:Hand_draw_map.png|Hand Drawn Map&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Space map.jpg|Space Station Earth Map&lt;br /&gt;
  Datei:Toner.png|Toner &lt;br /&gt;
  &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:Hand_drawn_map.png&amp;diff=50746</id>
		<title>Datei:Hand drawn map.png</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:Hand_drawn_map.png&amp;diff=50746"/>
		<updated>2014-05-22T07:31:07Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:Space_map.jpg&amp;diff=50745</id>
		<title>Datei:Space map.jpg</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:Space_map.jpg&amp;diff=50745"/>
		<updated>2014-05-22T07:30:51Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:Toner.png&amp;diff=50744</id>
		<title>Datei:Toner.png</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:Toner.png&amp;diff=50744"/>
		<updated>2014-05-22T07:30:21Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50667</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50667"/>
		<updated>2014-05-15T11:35:51Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german) &#039;&#039;&#039;&amp;gt;&amp;gt; NOTE: This is work in progress... &amp;lt;&amp;lt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are some other maps by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** OSM default style =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** Swiss OSM style =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** Muted Base Map (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
*** Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
*** The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
** [http://8bitcity.com/map 8-Bit NYC] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** POI-less map style (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** Blank map (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** Grey (B&amp;amp;W) Background Map (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** Vintage maps =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
** Space themed map style  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
** Hand drawn map style =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
** [http://www.openwhatevermap.org/ OpenWhateverMap]&lt;br /&gt;
* Maps with distinct personalities:&lt;br /&gt;
** Pinterest - Playful and handcrafted effect: Buffering and Meta Tiling, Entropy and Labeling&lt;br /&gt;
** Park Conservancy - To get people to the parks: Shield and Marker Trick, Symbol Fonts and Unicode Characters, Map Scraps&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
Workflow:&lt;br /&gt;
* Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
* The workflow consists of following steps:&lt;br /&gt;
** Step 0. Define map goals and prepare software and data.&lt;br /&gt;
** Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
** Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
** Step 3. Style data.&lt;br /&gt;
** Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50628</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50628"/>
		<updated>2014-05-13T12:32:18Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
**&#039;&#039;&#039;Space themed map style&#039;&#039;&#039;  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
**&#039;&#039;&#039;Hand drawn map style&#039;&#039;&#039; =&amp;gt; [http://dessine-moi-une-ville.makina-corpus.net/#13/43.5745/1.4868 A hand drawn map of Toulouse]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Advanced CartoCSS Techniques&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50627</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50627"/>
		<updated>2014-05-13T12:29:20Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
**&#039;&#039;&#039;Space themed map style&#039;&#039;&#039;  =&amp;gt; [https://www.mapbox.com/blog/space-station-earth/ Space Station Earth]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Advanced CartoCSS Techniques&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50626</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50626"/>
		<updated>2014-05-13T12:28:44Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
**Space themed map style [https://www.mapbox.com/blog/space-station-earth/ &#039;&#039;&#039;Space Station Earth&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Advanced CartoCSS Techniques&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50623</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50623"/>
		<updated>2014-05-13T12:27:53Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
**[https://www.mapbox.com/blog/space-station-earth/ &#039;&#039;&#039;Space Station Earth&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Advanced CartoCSS Techniques&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50622</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50622"/>
		<updated>2014-05-13T12:27:42Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
**[https://www.mapbox.com/blog/space-station-earth/ &#039;&#039;&#039;Space Station Earth&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Advanced CartoCSS Techniques&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50621</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50621"/>
		<updated>2014-05-13T12:27:11Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
**[https://www.mapbox.com/blog/space-station-earth/ &#039;&#039;&#039;Space Station Earth&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://speakerdeck.com/mojodna/advanced-cartocss-techniques Advanced CartoCSS Techniques]&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50620</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50620"/>
		<updated>2014-05-13T12:17:26Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://speakerdeck.com/mojodna/advanced-cartocss-techniques Advanced CartoCSS Techniques]&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
  Datei:Quiet_LA.png|Quiet LA&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:Quiet_LA.png&amp;diff=50619</id>
		<title>Datei:Quiet LA.png</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:Quiet_LA.png&amp;diff=50619"/>
		<updated>2014-05-13T12:16:43Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50618</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50618"/>
		<updated>2014-05-13T12:15:01Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
**[http://maps.stamen.com/#watercolor/12/47.2524/8.7375 &#039;&#039;&#039;Watercolor&#039;&#039;&#039;]&lt;br /&gt;
**[http://maps.stamen.com/toner/#12/37.3157/-122.0586 &#039;&#039;&#039;Toner&#039;&#039;&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://speakerdeck.com/mojodna/advanced-cartocss-techniques Advanced CartoCSS Techniques]&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50617</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50617"/>
		<updated>2014-05-13T12:14:18Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** &#039;&#039;&#039;Watercolor&#039;&#039;&#039; =&amp;gt; [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 Watercolor]&lt;br /&gt;
** &#039;&#039;&#039;Toner&#039;&#039;&#039; =&amp;gt; [http://maps.stamen.com/toner/#12/37.3157/-122.0586 Toner]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://speakerdeck.com/mojodna/advanced-cartocss-techniques Advanced CartoCSS Techniques]&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50597</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50597"/>
		<updated>2014-05-13T09:55:14Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** &#039;&#039;&#039;Watercolor&#039;&#039;&#039; =&amp;gt; [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 by Stamen]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://speakerdeck.com/mojodna/advanced-cartocss-techniques Advanced CartoCSS Techniques]&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
  Datei:8-bit_Cities.png|8-bit Cities Map&lt;br /&gt;
  Datei:Water Colour.png|Water Colour &lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:Water_Colour.png&amp;diff=50596</id>
		<title>Datei:Water Colour.png</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:Water_Colour.png&amp;diff=50596"/>
		<updated>2014-05-13T09:54:24Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Datei:8-bit_Cities.png&amp;diff=50595</id>
		<title>Datei:8-bit Cities.png</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Datei:8-bit_Cities.png&amp;diff=50595"/>
		<updated>2014-05-13T09:31:09Z</updated>

		<summary type="html">&lt;p&gt;HTan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50592</id>
		<title>Making Maps from OpenStreetMap Data</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=Making_Maps_from_OpenStreetMap_Data&amp;diff=50592"/>
		<updated>2014-05-12T11:47:35Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Map Gallery */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also [[OSM]], [[OpenStreetMap-Daten zu Karten aufbereiten]] (german)&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt; Work in progress... &amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
&lt;br /&gt;
This is a how to/knowhow page about making own web maps from [[OpenStreetMap]] data.&lt;br /&gt;
* If you are looking for making nice own &#039;&#039;&#039;base (or background) maps&#039;&#039;&#039; with own styling for print or web eventually within own region, and without programming skills - then this is the place to look for. Examples of personalized base maps are blind maps (maps without labels), the watercolor map from Stamen, OpenCycleMap among others.&lt;br /&gt;
* If you are looking for making a &#039;&#039;&#039;thematic map&#039;&#039;&#039; on top of given base maps, use [http://maperitive.net/ Maperitive] or [http://umap.openstreetmap.fr/en/ umap] or other applications (see [[Geovisualisierung]] (german)). Examples of thematic maps is [http://wheelmap.org/ Wheelmap] with infoboxes.&lt;br /&gt;
* This is still work in progress. Our plan (see Team below) is to put everything in a single script file (tbd.).&lt;br /&gt;
* See also [http://wiki.openstreetmap.org/wiki/Map_Making_Overview Map Making Overview] at OSM Wiki.&lt;br /&gt;
&lt;br /&gt;
== Map Gallery ==&lt;br /&gt;
&lt;br /&gt;
Map by category:&lt;br /&gt;
* Topographic map styles:&lt;br /&gt;
** &#039;&#039;&#039;OSM default style&#039;&#039;&#039; =&amp;gt; [http://www.osm.org/#16/47.2251/8.8264 osm.org] (&#039;&#039;Slippy Map&#039;&#039;)&lt;br /&gt;
** &#039;&#039;&#039;Swiss OSM style&#039;&#039;&#039; =&amp;gt; [http://www.osm.ch/#16/47.2251/8.8264 osm.ch] (de: &#039;&#039;Schweizer Kartenstil&#039;&#039;)&lt;br /&gt;
* Background map styles:&lt;br /&gt;
** &#039;&#039;&#039;Muted Base Map&#039;&#039;&#039; (Quiet style)  =&amp;gt; [https://github.com/datadesk/osm-quiet-la osm-quiet-la] (&#039;&#039;Quiet L.A.&#039;&#039;)&lt;br /&gt;
***Designed to serve as a muted backdrop for over­lay­ing data visu­al­iz­a­tions.&lt;br /&gt;
***The goal of &#039;&#039;Quiet L.A.&#039;&#039; is to re­move ex­traneous de­tail, but re­tain enough in­form­a­tion for the re­gion to re­main re­cog­niz­able.&lt;br /&gt;
**[http://8bitcity.com/map &#039;&#039;&#039;8-Bit NYC&#039;&#039;&#039;] is a lo-fi web map of New York City, inspired by 8-bit video games.&lt;br /&gt;
** &#039;&#039;&#039;POI-less map style&#039;&#039;&#039; (de: &#039;&#039;Karte ohne POIs)&#039;&#039; =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Blank map&#039;&#039;&#039; (de: Stumme Karte) =&amp;gt; tbd.&lt;br /&gt;
** &#039;&#039;&#039;Grey (B&amp;amp;W) Background Map&#039;&#039;&#039; (de: Schwarz-Weiss-Karte): tbd.&lt;br /&gt;
* Script map styles:&lt;br /&gt;
** &#039;&#039;&#039;Vintage maps&#039;&#039;&#039; =&amp;gt; [[Vintage Maps|Overview]] (Syn.: Treasure/Pirate Map; de: &#039;&#039;Vintage Map&#039;&#039;)&lt;br /&gt;
* Fancy map styles:&lt;br /&gt;
** &#039;&#039;&#039;Watercolor&#039;&#039;&#039; =&amp;gt; [http://maps.stamen.com/#watercolor/12/47.2524/8.7375 by Stamen]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://speakerdeck.com/mojodna/advanced-cartocss-techniques Advanced CartoCSS Techniques]&#039;&#039;&#039; &lt;br /&gt;
*Maps with distinct personalities&lt;br /&gt;
**&#039;&#039;&#039;Pinterest&#039;&#039;&#039; - Playful and handcrafted effect&lt;br /&gt;
***Buffering and Meta Tiling&lt;br /&gt;
***Entropy and Labeling &lt;br /&gt;
**&#039;&#039;&#039;Park Conservancy&#039;&#039;&#039; - To get people to the parks&lt;br /&gt;
***Shield and Marker Trick&lt;br /&gt;
***Symbol Fonts and Unicode Characters&lt;br /&gt;
***Map Scraps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are some available maps (map styles) based on OSM data and the database schema (explained below):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
  Datei:ScreenOpenEcoMap.PNG|Swiss Style (see also [[OpenEcoMap]])&lt;br /&gt;
  Datei:TreasureMap.PNG|Vintage Map (see also [[Vintage Maps]]&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Cookbook ==&lt;br /&gt;
&lt;br /&gt;
* Software: tbd.&lt;br /&gt;
* Data: tbd.&lt;br /&gt;
* Hardware: tbd.&lt;br /&gt;
&lt;br /&gt;
See workflow.&lt;br /&gt;
&lt;br /&gt;
Some background: Making maps actually means in this context transforming a dataset to graphics. Before being styled (or rendered) the dataset is being preprocessed which ultimately would be a one-click process - but it&#039;s not yet since technology and user demands are changing fast.&lt;br /&gt;
&lt;br /&gt;
At least, we can make life easeier when the intermediate dataset structure is has some known rules: See e.g. database schema below.&lt;br /&gt;
&lt;br /&gt;
== Workflow ==&lt;br /&gt;
&lt;br /&gt;
Pls. note that this is still work in progress and thus experimental, suboptimal and at worst partially broken.&lt;br /&gt;
&lt;br /&gt;
The workflow consists of following steps:&lt;br /&gt;
* Step 0. Define map goals and prepare software and data.&lt;br /&gt;
* Step 1. Download, convert and clip OSM data. You can skip to step 2 and jump to step 3 &amp;quot;Style data&amp;quot; if you are in a hurry.&lt;br /&gt;
* Step 2. Enhance and preprocess SQLite dataset.&lt;br /&gt;
* Step 3. Style data.&lt;br /&gt;
* Step 4. Publish map.&lt;br /&gt;
&lt;br /&gt;
As said before, our goal is to wrap step 1 and 2 into one single Python script.&lt;br /&gt;
&lt;br /&gt;
=== Step 0. Define map goals and prepare software and data ===&lt;br /&gt;
&lt;br /&gt;
Define map goals:&lt;br /&gt;
* Choose from a map style &lt;br /&gt;
* or prepare yourself to define an own style.&lt;br /&gt;
&lt;br /&gt;
Prepare software and data:&lt;br /&gt;
* Install software: [[OGR]]/Python, [[SpatiaLite]], [[TileMill]]&lt;br /&gt;
* Get config data, e.g. modified osmconf.ini &lt;br /&gt;
* Prepare clip boundary (e.g. liechtenstein_schloss_bbox.geojson) &lt;br /&gt;
** Search for the desired country boundary from OpenStreetMap and copy the Relation id&lt;br /&gt;
** Open http://overpass-turbo.eu/ and insert the commands below with the desired Relation id&lt;br /&gt;
** Export the data as geoJSON and open as layer in TileMill&lt;br /&gt;
&lt;br /&gt;
  {type=relation}&lt;br /&gt;
  {id=...}&lt;br /&gt;
  &amp;lt;osm-script output=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;id-query type=&amp;quot;{type}&amp;quot; ref=&amp;quot;{id}&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;body&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;recurse type=&amp;quot;down&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;print mode=&amp;quot;skeleton&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/osm-script&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*An alternative to obtain the clip boundary is by [http://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] which is a project to show a wikipedia article geometric objects from OSM. &lt;br /&gt;
**For example if you want to clip the boundary of Rapperswil-Jona, simply obtain the Deutsch wikipedia page of Rapperswil-Jona which is http://de.wikipedia.org/wiki/Rapperswil-Jona &lt;br /&gt;
**Note the wikipedia tag name (in this case it is Rapperswil-Jona) and replace it with &#039;&#039;Dresden&#039;&#039;. &lt;br /&gt;
**Also note the language of the wiki and change to the appropriate language abbreviation (lang=de for Deutsch and lang=en for English).&lt;br /&gt;
**To obtain the geojson file content, simply open QGIS and &#039;&#039;Add Vector Layer&#039;&#039;. Select &#039;&#039;Protocol&#039;&#039; and insert the URL with Type as GeoJSON and select Open.&lt;br /&gt;
&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=de&amp;amp;article=Rapperswil-Jona&lt;br /&gt;
  &lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Dresden&lt;br /&gt;
   http://tools.wmflabs.org/wiwosm/osmjson/getGeoJSON.php?lang=en&amp;amp;article=Singapore&lt;br /&gt;
&lt;br /&gt;
=== Step 1. Download, convert and clip OSM data === &lt;br /&gt;
* Open command line shell (PBF file in, SQLite/SpatiaLite file out):&lt;br /&gt;
  &amp;gt; ogr2ogr -f &amp;quot;SQLite&amp;quot; liechtenstein.sqlite&lt;br /&gt;
    /vsicurl/http://download.geofabrik.de/europe/liechtenstein-latest.osm.pbf &lt;br /&gt;
    -dsco SPATIALITE=YES -skipfailures -progress -overwrite &lt;br /&gt;
    --config OSM_CONFIG_FILE osmconf.ini -gt 65536 &lt;br /&gt;
    -clipsrc liechtenstein_schloss_bbox.geojson -clipsrclayer OGRGeoJSON &lt;br /&gt;
    -nlt PROMOTE_TO_MULTI&lt;br /&gt;
&lt;br /&gt;
Open points:&lt;br /&gt;
* Convert coordinates to Mercator? &lt;br /&gt;
&lt;br /&gt;
Alternatives (not used further here; this does not mean they are unusable - in contrary! - but that the are just not considered for different reasons):&lt;br /&gt;
* QGIS - reads PDF/OSM data with OGR (like we do here) but with default config and without preprocessing.&lt;br /&gt;
* spatialite_osm_map (OSM import tool from Spatialite) - no config of own tag-&amp;gt;attribute mapping, no clipping possible? &lt;br /&gt;
* osm2pgsql - requires PostGIS which is cumbersome being another local server software.&lt;br /&gt;
* osmosis - no tag-&amp;gt;attribute mapping?&lt;br /&gt;
&lt;br /&gt;
=== Step 2a. Enhance SQLite dataset  ===&lt;br /&gt;
* Enhance dataset by shuffling geo objects around (using Spatialite, SQLite file in/out)&lt;br /&gt;
* Convert Polygons to Points and add them to points as POIs.&lt;br /&gt;
* Eventually convert multilinestring to linestring (can TileMill/Mapnik and QGIS handle multilinestrings/multipolygons?).&lt;br /&gt;
&lt;br /&gt;
=== Step 2b. Do some other preprocessing === &lt;br /&gt;
* use preprocessing tools (Python, SQLite file in/out)&lt;br /&gt;
* line smoothing of streets &lt;br /&gt;
* tbd.&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* http://www.imagico.de/map/water_generalize2_en.php&lt;br /&gt;
&lt;br /&gt;
Ideas:&lt;br /&gt;
* DB related:&lt;br /&gt;
** Correct typos in tag values&lt;br /&gt;
** Correct and unify tag names &lt;br /&gt;
* Geometry related:&lt;br /&gt;
** Generalise geometry (line simplification and/or line smoothing) streets, forest, water bodies,&lt;br /&gt;
&lt;br /&gt;
=== Step 3. Style data ===&lt;br /&gt;
* Start [[TileMill]] &lt;br /&gt;
**TileMill uses CartoCSS as a stylesheet language and is a design environment used for cartography.&lt;br /&gt;
&lt;br /&gt;
*Making boundaries (like from buildings) to make a hand-made effect.&lt;br /&gt;
**A ‘sketchy’ look to lines can be achieved by overlaying a number of line attachments with different smoothing values applied. By smoothing higher values, the lines are overlaid using the ‘multiply’ compositing operation. This make areas that overlap more appear darker.&lt;br /&gt;
&lt;br /&gt;
  ::outline1, ::outline2, ::outline3, ::outline4 {&lt;br /&gt;
    line-join: round;&lt;br /&gt;
    line-color:#773d00;&lt;br /&gt;
    line-smooth: 0.05; &lt;br /&gt;
    line-width: 0.5;&lt;br /&gt;
  }&lt;br /&gt;
  ::outline1{ line-smooth: 0.04; }&lt;br /&gt;
  ::outline2{ line-smooth: 0.06; }&lt;br /&gt;
  ::outline3{ line-smooth: 0.08; }&lt;br /&gt;
  ::outline4{ line-smooth: 0.10; }&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
*Using a specific font which is unavailable in TileMill&lt;br /&gt;
**Create a directory to load fonts from in addition to the system directories&lt;br /&gt;
**Set up font sets for various weights and styles.&lt;br /&gt;
**Some suitable fonts/typefaces for a vintage pirate style are [http://www.fontsquirrel.com/fonts/Aquiline-two Aquiline] and [http://www.fontsquirrel.com/fonts/Mutlu Mutlu] &lt;br /&gt;
**With the newly added fonts, we can apply it to legends, buildings etc at specific zoom levels and text size to suit the style of your map. &lt;br /&gt;
  &lt;br /&gt;
  Map { font-directory: url(./fonts); } &lt;br /&gt;
  @piratefont: &amp;quot;Aquiline&amp;quot;,&amp;quot;Mutlu&amp;quot;,&amp;quot;French Script MT Regular&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  text-name:&#039;[Name]&#039;;&lt;br /&gt;
  text-face-name: &amp;quot;Aquiline&amp;quot;;&lt;br /&gt;
  text-allow-overlap: true; /*Control whether overlapping text is shown or hidden*/&lt;br /&gt;
  text-fill:#bdaf5a;&lt;br /&gt;
  text-comp-op: color-burn;&lt;br /&gt;
  text-size:10;&lt;br /&gt;
  &lt;br /&gt;
  [zoom &amp;gt; 15] {text-size:13;}&lt;br /&gt;
  [zoom &amp;gt; 17] {text-size:16;}&lt;br /&gt;
  [zoom &amp;gt; 19] {text-size:19;}&lt;br /&gt;
  [zoom &amp;gt; 20] {text-size:22;}&lt;br /&gt;
&lt;br /&gt;
*Changing colours and texture of different elements and styles interaction with [https://www.mapbox.com/tilemill/docs/guides/comp-op/#compositing_operations Compositing Operations]&lt;br /&gt;
**Some popular compositing operations for pirate style map are [https://www.mapbox.com/tilemill/docs/guides/comp-op/#colorburn colour-burn] and [https://www.mapbox.com/tilemill/docs/guides/comp-op/#softlight soft-light].&lt;br /&gt;
**For a grainy effect, pick a suitable image with noise. An example is shown [http://photoshoptutorials.ws/images/stories/2%5B4%5D_8b5da581-bf8b-400b-a0eb-85db42768559.jpg here]&lt;br /&gt;
**You can choose any other types of texture you wish to put on the background (or buildings) on your map by selecting a suitable image.&lt;br /&gt;
&lt;br /&gt;
  polygon-pattern-file: url(img/noise512.png);&lt;br /&gt;
  polygon-pattern-comp-op: soft-light;&lt;br /&gt;
&lt;br /&gt;
*Line patterns with images&lt;br /&gt;
**Sometimes we want to have different line styles to represent a brown dirty trail or a railway track for example. We first need to have a image file where the size should be rather small - the height of the image will be the width of the line pattern and the width of the image will be repeated along the length of the line.&lt;br /&gt;
 &lt;br /&gt;
  line-pattern-file:url(img/brownline.png);&lt;br /&gt;
&lt;br /&gt;
*Icons on POIs are important to make the map more interactive and detailed aesthetically. &lt;br /&gt;
**For a pirate/vintage map, it is important to have plenty of POIs (like bars/restaurants/gardens) and have an &amp;quot;old fashioned&amp;quot; design icon and style it on the map.&lt;br /&gt;
&lt;br /&gt;
  [type = &amp;quot;restaurant&amp;quot;]{&lt;br /&gt;
   marker-file:url(img/restaurant.png);&lt;br /&gt;
   marker-width:40;&lt;br /&gt;
   [zoom = 22]{marker-width:80;}&lt;br /&gt;
   [zoom = 20]{marker-width:20;}&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
* CartoCSS and [[TileMill]]&lt;br /&gt;
* Ready made icons: [[Symbolkatalog]]&lt;br /&gt;
&lt;br /&gt;
=== Step 4. Publish map ===&lt;br /&gt;
* On paper or on the web&lt;br /&gt;
* See e.g. [[TileMill]] or [[Geovisualisierung]]&lt;br /&gt;
&lt;br /&gt;
== Database Schema ==&lt;br /&gt;
&lt;br /&gt;
Table names and name rules (schema) of OSM data source:&lt;br /&gt;
* osm_points&lt;br /&gt;
* osm_lines&lt;br /&gt;
* osm_polygons&lt;br /&gt;
* osm_roads, osm_roads_gen0, ...&lt;br /&gt;
* osm_pois&lt;br /&gt;
* osm_boundaries (osm_boundaries_gen0, osm_boundaries_gen1, ...)&lt;br /&gt;
&lt;br /&gt;
Table names follow the schema &amp;quot;&amp;lt;prefix&amp;gt;_&amp;lt;name&amp;gt;_&amp;lt;postfix&amp;gt;&amp;quot; e.g. for zoom levels: &lt;br /&gt;
*  0-10 =&amp;gt; &amp;lt;name&amp;gt;_gen0&lt;br /&gt;
* 11-14 =&amp;gt; &amp;lt;name&amp;gt;_gen1&lt;br /&gt;
* &amp;gt;= 12 =&amp;gt; &amp;lt;name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Auxiliary data source:&lt;br /&gt;
* Boundaries&lt;br /&gt;
* Terrain&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
See also Diskussion:Making Maps from OpenStreetMap Data.&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* [[User:Stefan|Prof. Stefan Keller]]&lt;br /&gt;
* Hao Feng Tan&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:HowTo]]&lt;br /&gt;
[[Kategorie:Geodaten]]&lt;br /&gt;
[[Kategorie:OpenStreetMap]]&lt;br /&gt;
[[Kategorie:Kartografie]]&lt;br /&gt;
[[Kategorie:Geovisualisierung]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50574</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50574"/>
		<updated>2014-05-09T15:28:36Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Evaluated Games */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Click That Hood [http://click-that-hood.com/]&lt;br /&gt;
**Match countries or states to the correct location&lt;br /&gt;
**Able to match districts or cantons of Basel, Bern, Zurich etc. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Story Maps: Data stories [http://www.geo.admin.ch/internet/geoportal/de/home/topic_thematic_portals/storymaps.html]&lt;br /&gt;
**Story Maps is a showcase of several maps dealing with interesting themes: information, learning and entertainment.&lt;br /&gt;
**Available in English, German, French and Italian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead [http://www.mapofthedead.com/]&lt;br /&gt;
**Only available on iOS.&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
* [http://kort.ch Kort.ch]&lt;br /&gt;
**Requires the game-user to go to the various locations to answer specific questions to collect Koins&lt;br /&gt;
**Kort helps to improve OpenStreetMap-data. Tasks to be done are shown on a map.&lt;br /&gt;
**Able to run on both desktop browser, Android and iOS.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50573</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50573"/>
		<updated>2014-05-09T15:28:18Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Evaluated Games */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Click That Hood[http://click-that-hood.com/]&lt;br /&gt;
**Match countries or states to the correct location&lt;br /&gt;
**Able to match districts or cantons of Basel, Bern, Zurich etc. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Story Maps: Data stories[http://www.geo.admin.ch/internet/geoportal/de/home/topic_thematic_portals/storymaps.html]&lt;br /&gt;
**Story Maps is a showcase of several maps dealing with interesting themes: information, learning and entertainment.&lt;br /&gt;
**Available in English, German, French and Italian.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead [http://www.mapofthedead.com/]&lt;br /&gt;
**Only available on iOS.&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
* [http://kort.ch Kort.ch]&lt;br /&gt;
**Requires the game-user to go to the various locations to answer specific questions to collect Koins&lt;br /&gt;
**Kort helps to improve OpenStreetMap-data. Tasks to be done are shown on a map.&lt;br /&gt;
**Able to run on both desktop browser, Android and iOS.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50572</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50572"/>
		<updated>2014-05-09T15:06:13Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Evaluated Games */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Click That Hood[http://click-that-hood.com/]&lt;br /&gt;
**Match countries or states to the correct location&lt;br /&gt;
**Able to match districts or cantons of Basel, Bern, Zurich etc. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead [http://www.mapofthedead.com/]&lt;br /&gt;
**Only available on iOS.&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
* [http://kort.ch Kort.ch]&lt;br /&gt;
**Requires the game-user to go to the various locations to answer specific questions to collect Koins&lt;br /&gt;
**Kort helps to improve OpenStreetMap-data. Tasks to be done are shown on a map.&lt;br /&gt;
**Able to run on both desktop browser, Android and iOS.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50571</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50571"/>
		<updated>2014-05-09T14:58:39Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Evaluated Games */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead [http://www.mapofthedead.com/]&lt;br /&gt;
**Only available on iOS.&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
* [http://kort.ch Kort.ch]&lt;br /&gt;
**Requires the game-user to go to the various locations to answer specific questions to collect Koins&lt;br /&gt;
**Kort helps to improve OpenStreetMap-data. Tasks to be done are shown on a map.&lt;br /&gt;
**Able to run on both desktop browser, Android and iOS.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50570</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50570"/>
		<updated>2014-05-09T14:58:11Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Evaluated Games */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead [http://www.mapofthedead.com/]&lt;br /&gt;
**Only available on iOS.&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
* [http://kort.ch Kort.ch]&lt;br /&gt;
**Requires the game-user to go to the various locations to answer the questions to collect Koins&lt;br /&gt;
**Kort helps to improve OpenStreetMap-data. Tasks to be done are shown on a map.&lt;br /&gt;
**Able to run on both desktop browser, Android and iOS.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50569</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50569"/>
		<updated>2014-05-09T14:37:56Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Evaluated Games */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead [http://www.mapofthedead.com/]&lt;br /&gt;
**Only available on iOS.&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
* [http://kort.ch Kort.ch]&lt;br /&gt;
**Able to run on both desktop browser, Android and iOS.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50568</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50568"/>
		<updated>2014-05-09T14:37:28Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* Evaluated Games */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead&lt;br /&gt;
**Only available on iOS.&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
* [http://kort.ch Kort.ch]&lt;br /&gt;
**Able to run on both desktop browser, Android and iOS.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
	<entry>
		<id>https://giswiki.ch/index.php?title=GeoGames&amp;diff=50567</id>
		<title>GeoGames</title>
		<link rel="alternate" type="text/html" href="https://giswiki.ch/index.php?title=GeoGames&amp;diff=50567"/>
		<updated>2014-05-09T14:36:35Z</updated>

		<summary type="html">&lt;p&gt;HTan: /* List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;See also &lt;br /&gt;
* [http://de.wikipedia.org/wiki/Geogames#Geolympische_Disziplinen Geogames auf Wikipedia (de)]&lt;br /&gt;
* [[GEOSchool-Day]]&lt;br /&gt;
&lt;br /&gt;
== Evaluated Games ==&lt;br /&gt;
Geography Quizzes:&lt;br /&gt;
&lt;br /&gt;
* MapRoulette [http://maproulette.org/]&lt;br /&gt;
** Require an OSM account to play &lt;br /&gt;
**Knowledge on how to edit in ID or JOSM&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
**Cannot play the Suspected Wrong or Missing One Way Streets challenge&lt;br /&gt;
&lt;br /&gt;
*GeoGuessr [http://geoguessr.com/]&lt;br /&gt;
**Challenging game because the pictures are difficult to guess (Mostly forest/plain roads)&lt;br /&gt;
**Android app available [https://play.google.com/store/apps/details?id=mobi.funkapps.geowhere] &lt;br /&gt;
**Able to run on web-app&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Place Spotting [http://www.placespotting.com/ ]&lt;br /&gt;
**Relatively easy game with hints to help spot the place&lt;br /&gt;
**Able to run web-app on tablet and desktop. Not an Android app. &lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Europe Puzzle [http://stephanmendler.de/thinkmaps/puzzle/index_en.html] &lt;br /&gt;
**Relatively easy game by matching Europe countries to the map&lt;br /&gt;
**Able to run web-app on browser. Not an Android app.&lt;br /&gt;
**Unable to run web-app on tablet browser because there are problems dragging the countries to the map.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Map Quiz [http://online.seterra.net/en/]&lt;br /&gt;
**Similar to Europe Puzzle &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
*Geographie-spielev [http://www.geographie-spiele.com/] (Only in German)&lt;br /&gt;
**Specifically for Europe and German-speaking countries. &lt;br /&gt;
**Able to run on web-app on tablet and desktop. Not an Android app.&lt;br /&gt;
**Indoor game&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
*Map of the Dead&lt;br /&gt;
**Only available on the Apple App store for iPhone&lt;br /&gt;
**Find places near you that are likely to have resources to help you survive the zombie apocalypse. Or places to avoid.&lt;br /&gt;
&lt;br /&gt;
== List ==&lt;br /&gt;
&lt;br /&gt;
Geographie-Quizzes:&lt;br /&gt;
* [http://www.openwebglobe.org/openwebglobe-game-swizzquiz/ SwissQuiz] von OpenWebGlobe/IVGI FHNW&lt;br /&gt;
* [[QGIS Quiz Plugin]] von Geometa Lab HSR&lt;br /&gt;
&lt;br /&gt;
Quiz allgemein:&lt;br /&gt;
* Geography Map Games - Geographie-Quiz [http://www.geography-map-games.com/]&lt;br /&gt;
&lt;br /&gt;
Arcade:&lt;br /&gt;
* [[QGIS Game]]&lt;br /&gt;
&lt;br /&gt;
GPS Outdoor Games:&lt;br /&gt;
* http://turfgame.com/ (iphone &amp;amp; android)&lt;br /&gt;
* http://www.hoch4medien.de/apps/FathomX/ (nur iPhone) &lt;br /&gt;
* Geocaching - das Ur-Geogame!&lt;br /&gt;
* [http://cipas.ch/cs/geogames.html List of GeoGames by Christian Sailer]&lt;br /&gt;
* Ingress&lt;br /&gt;
* Mister X [http://gbanga.com/?tld=ch#!idmrx by Gbanga] (aka Scotland Yard mit ÖV)&lt;br /&gt;
&lt;br /&gt;
Indoor:&lt;br /&gt;
* [http://wiki.hsr.ch/StefanKeller/wiki.cgi?GhostHunt GhostHunt] (Prototype)&lt;br /&gt;
* Mafia(?) (von [http://gbanga.com/?tld=ch by Gbanga])&lt;br /&gt;
&lt;br /&gt;
Datengeschichten:&lt;br /&gt;
* [[StoryMaps]]&lt;br /&gt;
* [http://storymaps.geo.admin.ch/ Datengeschichten Swisstopo]&lt;br /&gt;
* Tagi Daten Blog mit Schweizer Karten [http://blog.tagesanzeiger.ch/datenblog/index.php/tag/karten]&lt;br /&gt;
* NZZ Blog mit Schweizer Karten [http://www.nzz.ch/aktuell/inland-sommerserie-schweizer-karten-interaktiv/]&lt;br /&gt;
&lt;br /&gt;
== Software Development ==&lt;br /&gt;
&lt;br /&gt;
3D Modeling:&lt;br /&gt;
* City Engine (Esri) &lt;br /&gt;
&lt;br /&gt;
3D Software Development Kits (see [http://infinitewrench.wordpress.com/2012/11/02/cryengine-3-vs-udkunity/]): &lt;br /&gt;
# CryENGINE (&amp;quot;Interaktive 3D-Landschaftsvisualisierung mittels Computer-Games [http://www.zhaw.ch/nc/de/zhaw/die-zhaw/publikationen/publikationen-zhaw-angehoerige/zhaw-publikation-detailanzeige.html?pi=204324])&lt;br /&gt;
# Unity3D&lt;br /&gt;
# Unreal Development Kit (UDK)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Kategorie:GeoGames]]&lt;/div&gt;</summary>
		<author><name>HTan</name></author>
	</entry>
</feed>