News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
PHP and Ordnance Survey Mapping
April 28, 2010 @ 10:55:14

Derick Rethans, indulging his "map geek" side, has written up a new post showing how he took the data from Ordnance Survey and mapped some information in the UK - postcode density for the whole area.

I decided to map all the postcodes onto the UK map where more postcodes for a specific place would create a "lighter" colour. Each postcode has on average about 15 addresses, so in more densely populated areas you have more "postcodes-per-area". Doing this wasn't very difficult and it resulted in the following map.

He walks through the entire process including how, in working with the data, he noticed alignment issues caused by the differing projections the map information service uses (Mercator) versus just mapping to a flat image. Some calculations were made to convert the latitude/longitude to the correct locations and the resulting points were plotted on a cut-out image of the UK.

After I figured out all the maths for this, the only problem that remains that implementing those algorithms in PHP is show-calculating all the positions from the 1.6 million postcode locations takes up to 10 minutes. This is why I am not presenting any code yet. I am planning to implement all the necessary calculations in a PHP extension to speed up the calculations.
0 comments voice your opinion now!
ordnance survey mapping uk postcode


blog comments powered by Disqus

Similar Posts

Tobias Schlitt's Blog: PHP library release survey

Zend: Results from "Zend Developer Pulse" 2012 Survey Posted

Job Posting: Assembleron Ltd Seeks Administration Guru (Reading, UK)

Job Posting: Envoy International seeks Senior PHP Developer (Glasgow, UK)

Zend: Zend Reveals What Music Will Keep Developers Productive (and Happy) This Holiday


Community Events











Don't see your event here?
Let us know!


release code application hack package security overview language composer install symfony2 component podcast unittest hhvm example opinion introduction framework facebook

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework