Tim<div><br></div><div>Thanks for the summary - would be good for some joint PR - Astun/OS/OSGeo if we could.</div><div><br></div><div>FYI - I loaded Vector Map Local using the same software for the whole of Cambridgeshire and it ran without a hitch - very happy.  We&#39;re building some MapServer .map files with this styled which we&#39;ll make available at some stage.  We already have a few variants for MasterMap - if anyone wants them let us know and we&#39;ll publish.</div>
<div><br></div><div>COU - I&#39;m pretty confident with this as we already have a couple of SQL statements to derive new tables of only the latest TOIDs (for MM) so in effect the COU files can be loaded / inserted into the same POSTGIS tables and we&#39;d derive another as a post process.  This way we can have a full history if required.  Some of our customers have simply commented that they will probably just take a full update each year and rebuild from scratch.</div>
<div><br></div><div>Re User Interface - we&#39;ll be trying to simplify things somewhat and will be providing &#39;official&#39; (we already do for quite a few customers) Enterprise Support, Training and Custom Development for this and other OSGeo products in the very near future</div>
<div><br></div><div>Many thanks</div><div>Mike<br clear="all"><div> </div><div>PS - my goal would be to have this whole process for national coverage being achievable in under 24 hours - some tweaks and PostGIS optimizations will help but I guess we&#39;ve also got Moore&#39;s Law on our side</div>
<div><br></div><div><strong>Mike Saunt</strong><br>
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18 7RL, UK <br>
t:+44 1372 744 009 m:+44 788 7777 680 <br>
<a href="http://www.astuntechnology.com" target="_blank">iShare - Data integration and publishing platform</a><br>
<a href="http://support.astuntechnology.com" target="_blank">See the new Helpdesk and Customer portal</a><br>
***************************************** <br>
<font color="red">Over 35% of the 4 star council websites use iShare - SOCITM Better Connected 2010</font></div><div><font color="#FF0000"><br></font><a href="http://www.isharemaps.com/customers/awards-and-commendations/" target="_blank">See our customer commendations and awards</a><br>

<br>
<font size="0.7em">
Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN
VAT no. 864201149.</font></div><br>
<br><br><div class="gmail_quote">On 26 August 2011 12:52, Tim Martin <span dir="ltr">&lt;<a href="mailto:Tim.Martin@ordnancesurvey.co.uk">Tim.Martin@ordnancesurvey.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<u></u>
<u></u>





<div lang="EN-GB" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi All<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Matt Walker asked if I would document my use of the OSMM Loader,
so here goes<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I tested both the initial (direct PostGIS loading using INSERT)
and the significantly quicker PGDump version on national coverage OSMM.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I used the
non-geo chunks, as I didn’t want to have to post process the database
tables to remove identical features. Matt has this down as a future improvement
and I would second that along with COU as being extremely useful. </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Details as
follows</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">1) Step 1
was to use the Astun loader to create the SQL Dump/COPY files. For this I used
a High-CPU Windows 64 Bit with Python 2.5 and GDAL 1.8 installed via the
OSGeo4W installer.</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Using
Non-Geo chunks of OSMM there are 1297 files equating to 35.9GB, I used 6
threads (the computer had 8 cores) to process 216 files/6Gb each and this took
15 hours and outputted 215Gb of SQL files, one for each Gzip file</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">2) Step 2
Data Loading</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I used the
inbuilt PSQL loader and run 2 threads on a Large Windows Amazon Instance to
load the data in PostGIS. Only 2 threads could be used as the Large instances
only have 2 cores – although it was only using 30-40% of total CPU, so could
potentially up this to 4 threads.</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">The load
took 13-14 hours</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">3) Running
the spatial indexes</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I amended
the config of PostGIS and upped the maintenance memory to 1Gb. This helped
created the spatial indexes in less than 10 hours compared to the original 17
hours with default PostGIS</span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font><u></u><u></u></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">So SQL
creation + data load + indexes = 40 hours.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I guess for
many people it will be the fear of using a commandline tool (people love a good
GUI) and the fact they do not have access to these powerful computers?<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I have been very
impressed though and would like to thank Matt for his support<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Tim<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> <u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<div>

<div style="margin-bottom:9.0pt">

<p class="MsoNormal" style="line-height:12.0pt"><strong><b><font size="2" color="#4d4d4d" face="Tahoma"><span style="font-size:10.5pt;font-family:Tahoma;color:#4D4D4D">Tim Martin Msc Bsc(Hons)</span></font></b></strong><font size="2" color="#4d4d4d" face="Tahoma"><span style="font-size:10.5pt;font-family:Tahoma;color:#4D4D4D"><u></u><u></u></span></font></p>


</div>

<div>

<p class="MsoNormal" style="line-height:12.0pt"><strong><b><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray">Web Services Consultant and INSPIRE Technical Business
Development Manager</span></font></b></strong><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray"><u></u><u></u></span></font></p>

</div>

<div>

<p class="MsoNormal" style="line-height:12.0pt"><span><b><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray;font-weight:bold">Ordnance Survey</span></font></b></span><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray"> <u></u><u></u></span></font></p>


</div>

<div><span title="work">

<p class="MsoNormal" style="line-height:12.0pt"><u></u><u></u><span><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray">Mobile</span></font></span><u></u><u></u><span><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray">: </span></font></span><span><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray"><a href="tel:%2B44%20%280%29%C2%A07917%20550%20225" value="+447917550225" target="_blank">+44 (0) 7917 550 225</a></span></font></span></p>
</span><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray"><u></u><u></u></span></font>

</div>

<div>

<p class="MsoNormal" style="line-height:12.0pt"><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray"><a href="http://www.ordnancesurvey.co.uk" target="_blank">www.ordnancesurvey.co.uk</a> | <a href="mailto:Tim.Martin@ordnancesurvey.co.uk" target="_blank">Tim.Martin<span>@ordnancesurvey.co.uk</span></a>
</span></font><font size="1" color="gray" face="Tahoma"><span style="font-size:9.0pt;font-family:Tahoma;color:gray"><u></u><u></u></span></font></p>

</div>

</div>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>

</div>

</div>



<pre>This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.

Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey&#39;s behalf via email. We reserve the right to monitor emails and attachments without prior notice.

Thank you for your cooperation.

Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
<a href="http://www.ordnancesurvey.co.uk" target="_blank">http://www.ordnancesurvey.co.uk</a>

</pre><br>_______________________________________________<br>
UK mailing list<br>
<a href="mailto:UK@lists.osgeo.org">UK@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/uk" target="_blank">http://lists.osgeo.org/mailman/listinfo/uk</a><br>
<br></blockquote></div><br></div>