<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.osgeo.org/w/index.php?action=history&amp;feed=atom&amp;title=Benchmarking_2011%2FCadcorp_notes</id>
	<title>Benchmarking 2011/Cadcorp notes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.osgeo.org/w/index.php?action=history&amp;feed=atom&amp;title=Benchmarking_2011%2FCadcorp_notes"/>
	<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Benchmarking_2011/Cadcorp_notes&amp;action=history"/>
	<updated>2026-04-12T17:55:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.9</generator>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Benchmarking_2011/Cadcorp_notes&amp;diff=81952&amp;oldid=prev</id>
		<title>Wiki-Leo at 11:15, 24 February 2015</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Benchmarking_2011/Cadcorp_notes&amp;diff=81952&amp;oldid=prev"/>
		<updated>2015-02-24T11:15:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:15, 24 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l97&quot; &gt;Line 97:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 97:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:FOSS4G2011&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]] [[Category:FOSS4G&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:FOSS4G2011]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wiki-Leo</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Benchmarking_2011/Cadcorp_notes&amp;diff=56743&amp;oldid=prev</id>
		<title>Jmckenna at 13:56, 24 August 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Benchmarking_2011/Cadcorp_notes&amp;diff=56743&amp;oldid=prev"/>
		<updated>2011-08-24T13:56:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:56, 24 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l96&quot; &gt;Line 96:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 96:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;update osm_roads_cadcorp set cadcorp_complexfc=13 where type='trunk_link' and tunnel=1;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;update osm_roads_cadcorp set cadcorp_complexfc=13 where type='trunk_link' and tunnel=1;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:FOSS4G2011]] [[Category:FOSS4G]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jmckenna</name></author>
	</entry>
	<entry>
		<id>https://wiki.osgeo.org/w/index.php?title=Benchmarking_2011/Cadcorp_notes&amp;diff=56437&amp;oldid=prev</id>
		<title>Wiki-Mpd: Created page with &quot;== Data ==  The &quot;UNION ALL&quot; views used by, for example, the &quot;osm_roads&quot; table are not usable by GeognoSIS because:  * No spatial index can be detected (this restriction could be ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.osgeo.org/w/index.php?title=Benchmarking_2011/Cadcorp_notes&amp;diff=56437&amp;oldid=prev"/>
		<updated>2011-08-10T09:16:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Data ==  The &amp;quot;UNION ALL&amp;quot; views used by, for example, the &amp;quot;osm_roads&amp;quot; table are not usable by GeognoSIS because:  * No spatial index can be detected (this restriction could be ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Data ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;UNION ALL&amp;quot; views used by, for example, the &amp;quot;osm_roads&amp;quot; table are not usable by GeognoSIS because:&lt;br /&gt;
&lt;br /&gt;
* No spatial index can be detected (this restriction could be relaxed, because PostGIS should work OK, albeit potentially slowly)&lt;br /&gt;
* No primary key/oid/unique id column can be detected&lt;br /&gt;
&lt;br /&gt;
The views were converted to tables, and indexed, as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
create table osm_railways_gen1_cadcorp as (select * from osm_railways_gen1);&lt;br /&gt;
alter table osm_railways_gen1_cadcorp add column cadcorp_id serial;&lt;br /&gt;
create index osm_railways_gen1_cadcorp_geometry_sidx on osm_railways_gen1_cadcorp using gist(geometry);&lt;br /&gt;
insert into geometry_columns(f_table_catalog, f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, &amp;quot;type&amp;quot;) SELECT '', 'public', 'osm_railways_gen1_cadcorp', 'geometry', ST_CoordDim(geometry), ST_SRID(geometry), GeometryType(geometry) FROM public.osm_railways_gen1_cadcorp LIMIT 1;&lt;br /&gt;
create unique index osm_railways_gen1_cadcorp_unqidx on osm_railways_gen1_cadcorp(cadcorp_id);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This was done for the following [[Benchmarking_2011/Imposm|Imposm]] tables:&lt;br /&gt;
&lt;br /&gt;
* osm_railways_gen1&lt;br /&gt;
* osm_roads_gen0&lt;br /&gt;
* osm_roads_gen1&lt;br /&gt;
* osm_roads&lt;br /&gt;
&lt;br /&gt;
Giving the following additional tables:&lt;br /&gt;
&lt;br /&gt;
* osm_railways_gen1_cadcorp&lt;br /&gt;
* osm_roads_gen0_cadcorp&lt;br /&gt;
* osm_roads_gen1_cadcorp&lt;br /&gt;
* osm_roads_cadcorp&lt;br /&gt;
&lt;br /&gt;
=== Styling ===&lt;br /&gt;
&lt;br /&gt;
In order to mimic the layered styling the &amp;quot;osm_roads_gen1_cadcorp&amp;quot; and &amp;quot;osm_roads_cadcorp&amp;quot; tables have additional columns added, as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
alter table osm_roads_gen1_cadcorp add column cadcorp_simplefc int4;&lt;br /&gt;
alter table osm_roads_cadcorp add column cadcorp_simplefc int4;&lt;br /&gt;
alter table osm_roads_cadcorp add column cadcorp_complexfc int4;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== mapserver2geognosis ==&lt;br /&gt;
&lt;br /&gt;
The MapServer MAP file was copied, edited to fix the &amp;quot;PROJ_LIB&amp;quot; setting to match the machine configuration (a freshly downloaded MS4W), then parsed via MapScript, in Python 2.6.&lt;br /&gt;
&lt;br /&gt;
The output of the Python program is:&lt;br /&gt;
&lt;br /&gt;
* A JSON file (approximately) describing the MapServer MAP file LAYER/STYLE/CLASS hierarchy&lt;br /&gt;
* A SQL file for adding styling codes to the &amp;quot;osm_roads_cadcorp&amp;quot; and &amp;quot;osm_roads_gen1_cadcorp&amp;quot; tables (see below)&lt;br /&gt;
* A JSON file containing styling lookup tables to match the styling codes&lt;br /&gt;
&lt;br /&gt;
The first JSON file is then re-parsed and the contents used to create the GeognoSIS equivalent of a MapServer MAP file.&lt;br /&gt;
&lt;br /&gt;
=== Style lookup codes ===&lt;br /&gt;
&lt;br /&gt;
The following SQL is used to set styling codes on the &amp;quot;osm_roads_cadcorp&amp;quot; and &amp;quot;osm_roads_gen1_cadcorp&amp;quot; tables:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_simplefc=5 where type='trunk_link';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_simplefc=4 where type='motorway_link';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_simplefc=9 where type='track';&lt;br /&gt;
update osm_roads_gen1_cadcorp set cadcorp_simplefc=2 where type='trunk';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_simplefc=10 where type='pedestrian';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_simplefc=7 where type='tertiary';&lt;br /&gt;
update osm_roads_gen1_cadcorp set cadcorp_simplefc=3 where type='primary';&lt;br /&gt;
update osm_roads_gen1_cadcorp set cadcorp_simplefc=1 where type='motorway';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_simplefc=8 where type in ('unclassified','residential','service','road','living_street');&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_simplefc=6 where type='secondary';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=23 where type='secondary';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=21 where type='trunk_link';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=24 where type='tertiary';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=20 where type='trunk';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=22 where type='primary';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=28 where type='footway';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=25 where type in ('unclassified','residential','service','road','living_street');&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=19 where type='motorway_link';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=26 where type='track';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=27 where type='pedestrian';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=18 where type='motorway';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=8 where bridge=1 and type in ('classified','residential','service','road','living_street');&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=9 where bridge=1 and type='pedestrian';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=6 where bridge=1 and type in ('secondary','secondary_link');&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=3 where bridge=1 and type='trunk';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=5 where bridge=1 and type in ('primary','primary_link');&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=1 where bridge=1 and type='motorway';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=7 where bridge=1 and type in ('tertiary','tertiary_link');&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=4 where bridge=1 and type='trunk_link';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=2 where bridge=1 and type='motorway_link';&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=10 where type='motorway' and tunnel=1;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=16 where type in ('tertiary','tertiary_link') and tunnel=1;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=12 where type='trunk' and tunnel=1;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=11 where type='motorway_link' and tunnel=1;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=14 where type in ('primary','primary_link') and tunnel=1;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=17 where type in ('unclassified','residential','service','road','living_street') and tunnel=1;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=15 where type in ('secondary','secondary_link') and tunnel=1;&lt;br /&gt;
update osm_roads_cadcorp set cadcorp_complexfc=13 where type='trunk_link' and tunnel=1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wiki-Mpd</name></author>
	</entry>
</feed>