Creating a panorama with OS OpenData

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — Creating a panorama with OS OpenData
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen Kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk bokmål norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português português do Brasil română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް

OS OpenData Land-Form PANORAMA data is now available as a series of binary heightfiles from here.

I have created some basic code in C to allow users to transform these height files into full 360º generated panoramas from anywhere in Great Britain. It could probably do with a bit of refining and efficiency improvements, but it does work on my machine, and seems to give acceptable results.

As a default, the panorama generator creates a file detailing the apparent altitude of concentric circles at 200m intervals, plotting points at 0.1 degree intervals on each circle. Then file can then be transformed into a bitmap file - rendering the full 360 panorama.

The panorama & bitmap files can be quite large.

The full source code will be provided shortly.

Example - from summit of Scafell Pike

Zoom in for full effect. North is at the left and right edges of the panorama

Looking towards "The Old Man of Coniston" - photo vs panorama Looking NNW - photo vs panorama

The comparisons above show a photo taken on a reasonably hazy day from the summit of Scafell Pike (full panorama on OpenTrailView), vs the computer generated panorama.

Due to the haze - hills & mountains further than about 15 miles away were not visible on the photos.

Example2 - from summit of Winter Hill near Bolton

WinterHill Snowdonia.jpg

A longer distance comparison. In this example, nice lighting conditions in the late afternoon and clearing skies to the west allowed this great view of the mountains of Snowdonia and the Great Orme near Llandudno from the summit of Winter Hill near Bolton - a distance of ~75 miles. The panorama is from Moel Siabod on the far left, via Snowdon & the Glyderau to the massive Carneddau range which makes up most of the central part, and finally the Great Orme near Llandudno on the far right.

Potential OSM applications

This could be used to provide "footpath-eye-views", e.g. similar to OS's Memory map perhaps.