<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.openmod-initiative.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.openmod-initiative.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jonasg</id>
		<title>wiki.openmod-initiative.org - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.openmod-initiative.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jonasg"/>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/Special:Contributions/Jonasg"/>
		<updated>2026-05-28T04:08:50Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.7</generator>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-12-21T15:47:33Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* Download of OSM data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows:&lt;br /&gt;
&lt;br /&gt;
[http://wiki.openstreetmap.org/wiki/Key:highway): http://wiki.openstreetmap.org/wiki/Key:highway]&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
 WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'living_street' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link' &lt;br /&gt;
 OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Download of OSM data =&lt;br /&gt;
&lt;br /&gt;
Small chunks off OSM data can be downloaded using QGIS. Under Vektor --&amp;gt; OpenstreetMap --&amp;gt; Daten herunterladen a .osm-file covering the current screen size can be downloaded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
OSM data for whole regions is available under [http://download.geofabrik.de/ http://download.geofabrik.de/]&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-12-21T15:47:05Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows:&lt;br /&gt;
&lt;br /&gt;
[http://wiki.openstreetmap.org/wiki/Key:highway): http://wiki.openstreetmap.org/wiki/Key:highway]&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
 WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'living_street' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link' &lt;br /&gt;
 OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Download of OSM data =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Small chunks off OSM data can be downloaded using QGIS. Under Vektor --&amp;gt; OpenstreetMap --&amp;gt; Daten herunterladen&lt;br /&gt;
&lt;br /&gt;
a .osm-file covering the current screen size can be downloaded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OSM data for whole regions is available under http://download.geofabrik.de/&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/Materialized_View</id>
		<title>Materialized View</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/Materialized_View"/>
				<updated>2016-11-17T15:18:30Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: Created page with &amp;quot; = Definition =  A materialized view inherits both properties from tables as well as views. Similar to a regular view it has to have a original table from which it retrieves i...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Definition =&lt;br /&gt;
&lt;br /&gt;
A materialized view inherits both properties from tables as well as views. Similar to a regular view it has to have a original table from which it retrieves its data and to which it is connected. Similar to a table it includes real data instead of just the algorithm which calculates the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Abbreviation =&lt;br /&gt;
&lt;br /&gt;
= Synonyms =&lt;br /&gt;
&lt;br /&gt;
= Superterms =&lt;br /&gt;
&lt;br /&gt;
= Subterms =&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Visualization in QGIS =&lt;br /&gt;
&lt;br /&gt;
Materialized views should be preferred over regular views when it is intended to visualize the data, for example in a GIS, since regular views have to constantly recalculate their data when visualizing it and therefore cause performance problems.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When creating a materialized view which holds geometry data, it is important to create a unique index on the ID column. QGIS requires this unique index to properly display the data.&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:26:20Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows:&lt;br /&gt;
&lt;br /&gt;
[http://wiki.openstreetmap.org/wiki/Key:highway): http://wiki.openstreetmap.org/wiki/Key:highway]&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
 WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'living_street' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link' &lt;br /&gt;
 OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:26:06Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows&lt;br /&gt;
&lt;br /&gt;
[http://wiki.openstreetmap.org/wiki/Key:highway): http://wiki.openstreetmap.org/wiki/Key:highway]&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
 WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'living_street' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link' &lt;br /&gt;
 OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:25:11Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows&lt;br /&gt;
&lt;br /&gt;
([http://wiki.openstreetmap.org/wiki/Key:highway): &amp;amp;nbsp http://wiki.openstreetmap.org/wiki/Key:highway):]&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
 WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'living_street' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link' &lt;br /&gt;
 OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:24:46Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows&lt;br /&gt;
&lt;br /&gt;
(http://wiki.openstreetmap.org/wiki/Key:highway):&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
 WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' &lt;br /&gt;
 OR &amp;quot;highway&amp;quot; = 'living_street' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link' &lt;br /&gt;
 OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:23:09Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows:&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
     WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
         OR &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' &lt;br /&gt;
         OR &amp;quot;highway&amp;quot; = 'living_street' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link' &lt;br /&gt;
         OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:21:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows:&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line &lt;br /&gt;
       WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' &lt;br /&gt;
             OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' OR &amp;quot;highway&amp;quot; = 'living_street'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:17:18Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt; SELECT * FROM openstreetmap.osm_deu_line&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;        WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;             OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' OR &amp;quot;highway&amp;quot; = 'living_street'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:16:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt; SELECT * FROM openstreetmap.osm_deu_line&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;       WHERE &amp;quot;highway&amp;quot; = 'motorway' OR &amp;quot;highway&amp;quot; = 'trunk' OR &amp;quot;highway&amp;quot; = 'primary' OR &amp;quot;highway&amp;quot; = 'secondary' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;/code&amp;gt;             OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'unclassified' OR &amp;quot;highway&amp;quot; = 'residential' OR &amp;quot;highway&amp;quot; = 'service' OR &amp;quot;highway&amp;quot; = 'living_street'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'pedestrian' OR &amp;quot;highway&amp;quot; = 'bus_guideway' OR &amp;quot;highway&amp;quot; = 'road' &amp;amp;nbsp;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'trunk_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'primary_link'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'secondary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'tertiary_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'track'&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' OR&amp;amp;nbsp; &amp;quot;highway&amp;quot; = 'motorway_link' &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	<entry>
		<id>https://wiki.openmod-initiative.org/wiki/OpenStreetMap</id>
		<title>OpenStreetMap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openmod-initiative.org/wiki/OpenStreetMap"/>
				<updated>2016-10-13T16:11:46Z</updated>
		
		<summary type="html">&lt;p&gt;Jonasg: /* OSM in oedb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{GlossaryTermTemp&lt;br /&gt;
|Abbreviation=OSM&lt;br /&gt;
|Definition=1. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. The creation and growth of OSM has been motivated by restrictions on use or availability of map information across much of the world, and the advent of inexpensive portable satellite navigation devices.[5] OSM is considered a prominent example of volunteered geographic information.&lt;br /&gt;
|Sources=https://en.wikipedia.org/wiki/OpenStreetMap, http://www.openstreetmap.org/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== OSM in oedb&amp;lt;br/&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
OSM can be imported in PostgreSQL.&amp;lt;br/&amp;gt;The '''oedb''' has the schema openstreetmap.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
All keys and tags are stored in the '''tags '''column with format [https://www.postgresql.org/docs/9.6/static/hstore.html hstore].&amp;lt;br/&amp;gt;To query hstore is different but simple:&amp;lt;br/&amp;gt;&amp;lt;pre&amp;gt;SELECT * FROM openstreetmap.osm_deu_point WHERE tags ? 'research_institution'&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;SELECT tags -&amp;gt; 'name' AS name, tags -&amp;gt; 'short_name' AS abbreviation FROM openstreetmap.osm_deu_point WHERE tags @&amp;gt; '&amp;quot;amenity&amp;quot;=&amp;gt;&amp;quot;research_institute&amp;quot;'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The import is done with [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/osm2oedb.txt osm2pgsql], [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/tools/osm2pgsql/oedb.style oedb.style] and [https://github.com/openego/data_processing/blob/refactor/as-a-python-script/data_processing/sql_snippets/setup_openstreetmap.sql setup_openstreetmap.sql]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When importing OSM data this way, the tables osm_deu_line and osm_deu_roads are created among others. Osm_deu_line contains every imported line object. Osm_deu_roads does NOT contain only roads, but is a subset of osm_deu_line, which in other applications can be used for simplified map visualisation at higher zoom levels. It is not suitable for data processing purposes because of incompleteness of the data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;A subset of osm_deu_line which contains only roads can be created by using the highway-key as follows:&lt;/div&gt;</summary>
		<author><name>Jonasg</name></author>	</entry>

	</feed>