<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://geofictician.net/wiki/index.php?action=history&amp;feed=atom&amp;title=User%3ALuciano%2FSandbox%2FMaperitive%2FOverviewMap</id>
	<title>User:Luciano/Sandbox/Maperitive/OverviewMap - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://geofictician.net/wiki/index.php?action=history&amp;feed=atom&amp;title=User%3ALuciano%2FSandbox%2FMaperitive%2FOverviewMap"/>
	<link rel="alternate" type="text/html" href="https://geofictician.net/wiki/index.php?title=User:Luciano/Sandbox/Maperitive/OverviewMap&amp;action=history"/>
	<updated>2026-04-21T03:18:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://geofictician.net/wiki/index.php?title=User:Luciano/Sandbox/Maperitive/OverviewMap&amp;diff=1127&amp;oldid=prev</id>
		<title>imported&gt;Luciano: Created page with &quot;This is an &quot;overview map&quot; that is made using some extracts and transformations on the OGF world backup file (.pbf), followed by a Maperitive ruleset.   File:Maperitive_Overv...&quot;</title>
		<link rel="alternate" type="text/html" href="https://geofictician.net/wiki/index.php?title=User:Luciano/Sandbox/Maperitive/OverviewMap&amp;diff=1127&amp;oldid=prev"/>
		<updated>2019-05-02T13:09:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is an &amp;quot;overview map&amp;quot; that is made using some extracts and transformations on the OGF world backup file (.pbf), followed by a Maperitive ruleset.   File:Maperitive_Overv...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is an &amp;quot;overview map&amp;quot; that is made using some extracts and transformations on the OGF world backup file (.pbf), followed by a Maperitive ruleset. &lt;br /&gt;
&lt;br /&gt;
[[File:Maperitive_OverviewMap_Test1.jpg|1200px]]&lt;br /&gt;
&lt;br /&gt;
Note that in the above map, some countries aren&amp;#039;t showing up, and there are lots of mistakes. That&amp;#039;s because it&amp;#039;s based on the actual current data in OGF put there by mappers. Countries with broken border relations don&amp;#039;t show up at all. Other countries have out of date or incorrect information of various kinds in their labels. &lt;br /&gt;
&lt;br /&gt;
In order for this to be successful, we would need to &amp;quot;clean up&amp;quot; our map data a lot&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;advantage&amp;#039;&amp;#039;&amp;#039; would be that we could eliminate the need to maintain a separate overview map. We could create a script to re-generate this map on a regular basis.&lt;br /&gt;
&lt;br /&gt;
In my offline OSM file, I added a tag called &amp;quot;ogf:status&amp;quot; that could be used to drive the coloring on the map. So the colors are based on my additions to the .OSM file.&lt;br /&gt;
&lt;br /&gt;
One challenge was to get country labels that appear in a useful way. I did some data transformations using osmconvert and osmfilter first. To make typing the commands easier (I still haven&amp;#039;t made a script), I named my files &amp;quot;o.osm&amp;quot;, &amp;quot;ov.osm&amp;quot; etc. The effect of these transformations is to&lt;br /&gt;
&lt;br /&gt;
* simplify the data set, eliminating as much irrelevant data as possible from the world file - no streets, no features... only coastlines and country boundaries&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;osmconvert o.pbf -o=o.o5m&lt;br /&gt;
&lt;br /&gt;
&amp;gt;osmfilter o.o5m --keep=&amp;quot;natural=coastline or admin_level&amp;lt;3 &amp;quot; -o=ov.osm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* create a label node for the center of each admin_level=2 boundary relation and merge it into the osm file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;osmconvert ov.osm --all-to-nodes -o=on.osm&lt;br /&gt;
&lt;br /&gt;
&amp;gt;osmfilter on.osm --keep=&amp;quot;@id&amp;gt;2000000000000000 and type=boundary and admin_level&amp;lt;3&amp;quot; -o=ob.osm&lt;br /&gt;
&lt;br /&gt;
&amp;gt;osmconvert ov.osm ob.osm -o=om.osm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then we can open the output file, &amp;#039;&amp;#039;om.osm&amp;#039;&amp;#039;, using Maperitive, with the following ruleset:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// origin: http://opengeofiction.net/wiki/index.php/User:Luciano/Sandbox/Maperitive/OverviewMap&lt;br /&gt;
&lt;br /&gt;
features&lt;br /&gt;
	lines&lt;br /&gt;
		all lines : &lt;br /&gt;
		&lt;br /&gt;
	areas&lt;br /&gt;
		active : relation[ ( NOT &amp;quot;ogf:owner&amp;quot;=&amp;quot;[all]&amp;quot; AND NOT &amp;quot;ogf:owner&amp;quot;=&amp;quot;[free]&amp;quot; AND NOT &amp;quot;ogf:status&amp;quot; ) OR &amp;quot;ogf:status&amp;quot;=&amp;quot;active&amp;quot;]&lt;br /&gt;
		all : relation[ ( &amp;quot;ogf:owner&amp;quot;=&amp;quot;[all]&amp;quot; AND NOT &amp;quot;ogf:owner&amp;quot;=&amp;quot;[free]&amp;quot; AND NOT &amp;quot;ogf:status&amp;quot; ) OR &amp;quot;ogf:status&amp;quot;=&amp;quot;all&amp;quot;]&lt;br /&gt;
		collab : relation[&amp;quot;ogf:status&amp;quot;=&amp;quot;collaborative&amp;quot;]&lt;br /&gt;
		free : relation[ ( &amp;quot;ogf:owner&amp;quot;=&amp;quot;[free]&amp;quot; AND NOT &amp;quot;ogf:owner&amp;quot;=&amp;quot;[all]&amp;quot; AND NOT &amp;quot;ogf:status&amp;quot; ) OR &amp;quot;ogf:status&amp;quot;=&amp;quot;free&amp;quot;]&lt;br /&gt;
		inactive : relation[&amp;quot;ogf:status&amp;quot;=&amp;quot;inactive&amp;quot;]&lt;br /&gt;
		&lt;br /&gt;
	points&lt;br /&gt;
		label : [ogf:id AND type=boundary] &lt;br /&gt;
		&lt;br /&gt;
properties&lt;br /&gt;
	map-background-color : #e1e1e1&lt;br /&gt;
&lt;br /&gt;
rules&lt;br /&gt;
&lt;br /&gt;
	target : label&lt;br /&gt;
		define&lt;br /&gt;
			font-family : Ariel&lt;br /&gt;
			text-align-horizontal : center&lt;br /&gt;
			text-align-vertical : center&lt;br /&gt;
			text : [[ogf:id]] &amp;quot;\n&amp;quot; name &amp;quot;\n&amp;quot; [[ogf:owner]] &lt;br /&gt;
			font-size : 10&lt;br /&gt;
			font-weight : bold&lt;br /&gt;
			fill-color : #fcfcfb&lt;br /&gt;
			text-color : #060606&lt;br /&gt;
			text-halo-width : 0&lt;br /&gt;
			shape : square&lt;br /&gt;
			shield-resize-mode : free&lt;br /&gt;
		draw : shield&lt;br /&gt;
&lt;br /&gt;
	target : free&lt;br /&gt;
		define&lt;br /&gt;
			fill-color : #009000&lt;br /&gt;
			fill-opacity : 0.7&lt;br /&gt;
		draw : fill&lt;br /&gt;
&lt;br /&gt;
	target : inactive&lt;br /&gt;
		define&lt;br /&gt;
			fill-color : #FFFF00&lt;br /&gt;
			fill-opacity : 0.7&lt;br /&gt;
		draw : fill&lt;br /&gt;
&lt;br /&gt;
	target : collab&lt;br /&gt;
		define&lt;br /&gt;
			fill-color : #800080&lt;br /&gt;
			fill-opacity : 0.7&lt;br /&gt;
		draw : fill&lt;br /&gt;
&lt;br /&gt;
	target : all&lt;br /&gt;
		define&lt;br /&gt;
			fill-color : #0000FF&lt;br /&gt;
			fill-opacity : 0.7&lt;br /&gt;
		draw : fill&lt;br /&gt;
&lt;br /&gt;
	target : active&lt;br /&gt;
		define&lt;br /&gt;
			fill-color : #0E1E0E&lt;br /&gt;
			fill-opacity : 0.2&lt;br /&gt;
		draw : fill&lt;br /&gt;
&lt;br /&gt;
	target : all lines&lt;br /&gt;
		define&lt;br /&gt;
			line-color : #fbe56b&lt;br /&gt;
			line-width : 2&lt;br /&gt;
		draw : line&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Luciano</name></author>
	</entry>
</feed>