Thank you, thank you, thank you. <br><br>While I have not tried it yet, scripts like this will make OSM usable again for those who actually want to use the data (wasn't that one of the main goals?) When - at a recent mapping event - I was told by one of the key OSM people 'Who wants to download the whole of London?' when I complained that the API does not work for this anymore I seriously began to doubt the project's sanity. And stopped using it -- life is a bit too short.
<br><br>Two suggestions: <br>1) have this script generate the gb/irl data on the server and store it next to the planet.osm. This will seriously cut down the amount of data have to download and make it easier to work with up to date data. I assume there will be a lot of interest in the UK/IRL/Germany only data.
<br>2) start a collection of interesting polygons (cities, counties, regions etc). While it might not make sense producing the cut down data files for all these polygons, it will help people get started.<br><br>Ludwig<br>
<br><div><span class="gmail_quote">On 3/13/07, <b class="gmail_sendername">Keith Sharp</b> <<a href="mailto:kms@passback.co.uk">kms@passback.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>Following on from last weeks discussion about reducing the size of the<br>planet.osm data set for particular use cases I have modified a script<br>written by Frederik Ramm that extracted data for Germany so that it
<br>extracts data for Great Britain, Ireland, the Channel Islands, the Isles<br>of Scilly, St Kilda, Orkney, and Shetland.  The polygon I used can be<br>seen:<br><br>        <a href="http://www.passback.co.uk/maps/gbirl.html">
http://www.passback.co.uk/maps/gbirl.html</a><br><br>You can download the script from:<br><br>        <a href="http://www.passback.co.uk/maps/extract-gb-irl.pl">http://www.passback.co.uk/maps/extract-gb-irl.pl</a><br><br>
You run the script as follows:<br><br>        ./extract-gb-irl.pl < planet-070307.osm > gb-irl.osm<br><br>On my system a run took just over 5 minutes wall clock time, I have not<br>looked at memory usage in any detail, but it looked about 50MB max
<br>resident size in top (not the best measure, I know).  The uncompressed<br>file is reduced from 3.40Gb to 0.22Gb, bzip2 compressed size is 16Mb.<br><br>I have done a little checking of the data and it looks like it is<br>
working as expected, but I would appreciate if others could check as<br>well.  Would it be possible to get the script added to the OSM SVN,<br>preferably next to Frederiks script.<br><br>A final question, I created the visualisation of the polygon in Google
<br>Maps because I could not see how to do the same thing using the OSM<br>infrastructure, am I correct in thinking that there is no public API for<br>OSM at this stage?<br><br>Thanks,<br><br>Keith.<br><br><br>_______________________________________________
<br>dev mailing list<br><a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
</a><br></blockquote></div><br>