<p>Lovely python. </p>
<p>Sent from my mobile which isn&#39;t an iPhone</p>
<div class="gmail_quote">On 16 Apr 2011 10:18, &quot;Matthew Pulis&quot; &lt;<a href="mailto:mpulis@gmail.com">mpulis@gmail.com</a>&gt; wrote:<br type="attribution">&gt; Good idea Mike. The only problem is that we cannot use a database since we<br>
&gt; need to style the actual data for images. Although one could load it to a db<br>&gt; and then re-export it with some other tools - but that just increases time<br>&gt; etc.<br>&gt; <br>&gt; is the code of osmm loader c++ or c#?<br>
&gt; <br>&gt; <br>&gt; Matthew Pulis BSc. (Business and Computing) MSc. (Informatics)<br>&gt; web:   <a href="http://www.matthewpulis.info">www.matthewpulis.info</a><br>&gt; mob:   +44 7866535953  / +356 79539404<br>&gt; <br>
&gt; <br>&gt; <br>&gt; On Fri, Apr 15, 2011 at 11:44 PM, Mike Saunt<br>&gt; &lt;<a href="mailto:mikesaunt@astuntechnology.com">mikesaunt@astuntechnology.com</a>&gt;wrote:<br>&gt; <br>&gt;&gt; I agree but a potential enhance ment someone may wish to add would be to<br>
&gt;&gt; convert each gz to a shape and then run a tileindex against the directory...<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Sent from my mobile which isn&#39;t an iPhone<br>&gt;&gt; On 15 Apr 2011 19:33, &quot;Matt Walker&quot; &lt;<a href="mailto:walkermatt@longwayaround.org.uk">walkermatt@longwayaround.org.uk</a>&gt;<br>
&gt;&gt; wrote:<br>&gt;&gt; &gt; Hi Matt,<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; If you are referring to the splitting the data from a given layer into a<br>&gt;&gt; &gt; series of Shape files under 2GB then the OSMM loader doesn&#39;t do this at<br>
&gt;&gt; &gt; present although I don&#39;t see why this couldn&#39;t be done quite easily.<br>&gt;&gt; &gt; Generally though if you are working with a large volume of data loading<br>&gt;&gt; into<br>&gt;&gt; &gt; a spatial database like PostGIS might be more suitable and the loader can<br>
&gt;&gt; &gt; already load do that as it can load into any of the OGR formats (see<br>&gt;&gt; &gt; <a href="http://www.gdal.org/ogr/ogr_formats.html">http://www.gdal.org/ogr/ogr_formats.html</a> for a list).<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers,<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Matt.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; On 15 April 2011 09:45, Saber &lt;<a href="mailto:razmjooeis@faunalia.co.uk">razmjooeis@faunalia.co.uk</a>&gt; wrote:<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Matthew<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; Ogr2ogr now truncates the attribute headers for shapefile when exceed 10<br>&gt;&gt; &gt;&gt; letters.<br>&gt;&gt; &gt;&gt; Cheers<br>&gt;&gt; &gt;&gt; Saber<br>
&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt; Guys,<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt; I know some time ago I was trying the ogr2ogr but ended up hitting a<br>&gt;&gt; &gt;&gt; brick<br>
&gt;&gt; &gt;&gt; &gt; wall in the case where SHP&#39;s dbf reached its limit. Does this tool<br>&gt;&gt; split<br>&gt;&gt; &gt;&gt; &gt; the<br>&gt;&gt; &gt;&gt; &gt; SHPs into small numbers? Since OS data is quite big, such a feature<br>
&gt;&gt; would<br>&gt;&gt; &gt;&gt; &gt; surely be helpful.<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt; Good job on the util ;)<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt; Matthew<br>&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt; Matthew Pulis BSc. (Business and Computing) MSc. (Informatics)<br>&gt;&gt; &gt;&gt; &gt; web: <a href="http://www.matthewpulis.info">www.matthewpulis.info</a><br>&gt;&gt; &gt;&gt; &gt; mob: +44 7866535953 / +356 79539404<br>
&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt; On Wed, Apr 13, 2011 at 11:10 PM, Saber Razmjooei<br>&gt;&gt; &gt;&gt; &gt; &lt;<a href="mailto:razmjooeis@faunalia.co.uk">razmjooeis@faunalia.co.uk</a><br>
&gt;&gt; &gt;&gt; &gt;&gt; wrote:<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; Matt<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; Excellent. No, your code was clear and well-licensed :)<br>&gt;&gt; &gt;&gt; &gt;&gt; We will try to add MasterMap styling for qgis plus export to PostGIS<br>
&gt;&gt; and<br>&gt;&gt; &gt;&gt; &gt;&gt; other ogr format in near future, which is mostly qgis stuff.<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; There are already plugins for exporting/importing QGIS styling to<br>
&gt;&gt; &gt;&gt; &gt;&gt; Mapserver .. maybe we can do it once for both Mapserver and QGIS?<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; Cheers<br>&gt;&gt; &gt;&gt; &gt;&gt; Saber<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; On Wed, 2011-04-13 at 21:57 +0100, Matt Walker wrote:<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Nice work Saber, just tried it with the Topographic Layer sample<br>
&gt;&gt; from<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; the OS website on our home laptop (Ubuntu 9.10, Quantum GIS 1.5.0,<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; GDAL/OGR 1.7.2 all defaults from packages) and it worked a treat<br>&gt;&gt; :-).<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; I&#39;ve put a note on the project page and I&#39;ll mention it to the OS.<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Is there anything you need to change or would like to see improved?<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Cheers,<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Matt.<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; On 13 April 2011 13:42, Saber Razmjooei &lt;<a href="mailto:razmjooeis@faunalia.co.uk">razmjooeis@faunalia.co.uk</a><br>
&gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; wrote:<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Matt<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; We have taken your code and ported it as QGIS plugin.<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; Here is the link to the repo. At the moment it&#39;s shapefile but<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; future<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; changes will support other formats.<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; <a href="http://moses.faunalia.co.uk/qgis/plugins/plugins.xml">http://moses.faunalia.co.uk/qgis/plugins/plugins.xml</a><br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Cheers<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; Saber<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; On Thu, 2011-04-07 at 09:54 +0100, Matt Walker wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; Hi Guys,<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; At Astun we&#39;ve been working with OS data for years with Open<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Software.<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; We&#39;ve recently signed up as Developer Partners which allows<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; access to<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; data for development, testing and demonstration and also<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; joined the<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; Insight program which allows early access to new products.<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; I&#39;d be<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; happy to pass on details to anyone that&#39;s interested.<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; I agree that we should look to get the open software we know<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; is<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; compatible on the list and I&#39;m happy to find out what&#39;s<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; required.<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; On a related note we&#39;ve recently pulled together a simple OS<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; MasterMap<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; loader which is a thin Python wrapper around OGR 1.8. The<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; source is<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; available at <a href="https://github.com/AstunTechnology/osmmloader">https://github.com/AstunTechnology/osmmloader</a>.<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; It&#39;s only<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; designed to load an initial supply at present but we will<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; possibly<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; look at adding CoU support in future. Jo Cook has been<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; working on a<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; MapServer map file to style the output which we&#39;ll put up<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; with the<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; source shortly. Some highlights include: it uses ogr2ogr<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; which meeans<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; that you can write to all destination formats supported by<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; OGR by<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; providing ogr2ogr command line options; it reads GML or GZ<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; natively<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; and it&#39;s open software :-)<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; Thanks,<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; Matt.<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; On 6 Apr 2011 17:19, &quot;Barry Rowlingson&quot;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &lt;<a href="mailto:b.rowlingson@lancaster.ac.uk">b.rowlingson@lancaster.ac.uk</a>&gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; wrote:<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; On Tue, Apr 5, 2011 at 10:33 PM, Joanne Cook<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &lt;<a href="mailto:j.cook@thehumanjourney.net">j.cook@thehumanjourney.net</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt;&gt; Perhaps we should find out who to contact and offer to<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; update it<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; for them?<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; There&#39;s a customer services contact:<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; &quot;For general enquiries, complaints, feedback or<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; suggestions, email:<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; <a href="mailto:customerservices@ordnancesurvey.co.uk">customerservices@ordnancesurvey.co.uk</a> or call us on 08456<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; 05 05 05&quot;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; I think we need someone to enquire for a sample of test<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; data sets,<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; and what the OS consider as &#39;supports&#39; in the table. Just<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; loading it<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; without errors might not be enough.<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; It might also be worth suggesting they add a GDAL/OGR row<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; which<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; would<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; cover most Open-source GIS and lots of proprietary ones<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; too.<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; Barry<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; _______________________________________________<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; UK mailing list<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; <a href="mailto:UK@lists.osgeo.org">UK@lists.osgeo.org</a><br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/uk">http://lists.osgeo.org/mailman/listinfo/uk</a><br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; _______________________________________________<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; UK mailing list<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; <a href="mailto:UK@lists.osgeo.org">UK@lists.osgeo.org</a><br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/uk">http://lists.osgeo.org/mailman/listinfo/uk</a><br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; --<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; Matt Walker<br>&gt;&gt; &gt;&gt; &gt;&gt; &gt; @_walkermatt<br>
&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>&gt;&gt; &gt;&gt; &gt;&gt; UK mailing list<br>&gt;&gt; &gt;&gt; &gt;&gt; <a href="mailto:UK@lists.osgeo.org">UK@lists.osgeo.org</a><br>
&gt;&gt; &gt;&gt; &gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/uk">http://lists.osgeo.org/mailman/listinfo/uk</a><br>&gt;&gt; &gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt; &gt;<br>&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; --<br>&gt;&gt; &gt; Matt Walker<br>&gt;&gt; &gt; @_walkermatt<br>&gt;&gt;<br></div>