[Talk-GB] Script to create LIDAR tiles e.g. for tracing buildings

Gregrs gregrs at fastmail.co.uk
Thu Aug 17 18:54:40 UTC 2017


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi all,

Standing on the shoulders of various other OSM contributors, I've
written a BASH script [https://github.com/gregrs-uk/lidar2tiles] which
uses GDAL to automatically process Environment Agency LIDAR 'composite'
data and create map tiles which can be viewed in a browser or used in
JOSM. Map tiles are coloured based on the height of surface features
such as buildings and trees, calculated by subtracting the DTM from the
DSM. This can make it easier to trace buildings more accurately because
different roof heights are different colours. By default, features below
1m are transparent, meaning that buildings can easily be distinguished
from ground level and the tiles can be viewed on top of Bing imagery,
for example. The colours can be customised, of course.

I've created map tiles for the area around Canterbury, which you can    
view here [http://gregrs.dev.openstreetmap.org/lidar]. They can be      
added to JOSM temporarily using this link                               
[http://localhost:8111/imagery?title=EA%20LIDAR%20Open%20Data%20Canterbury&type=tms&url=http://gregrs.dev.openstreetmap.org/lidar/{zoom}/{x}/{-y}.png] 
if remote control is enabled, or added permanently as follows:

* Click on Imagery > Imagery Preferences
* Click on the '+ TMS' button
* Enter the URL 
* http://gregrs.dev.openstreetmap.org/lidar/{zoom}/{x}/{-y}.png (note 
the -y) and a name for the layer
* The layer will appear in the Imagery menu

Please feel free to use the code
[https://github.com/gregrs-uk/lidar2tiles] and to experiment!

Greg

- -- 
Twitter: @gregrs_uk
http://gregrs.dev.openstreetmap.org
PGP key ID: 64907C8A
Fingerprint: EBD1 077F CCDD 841E A505 3FAA D2E8 592E 6490 7C8A
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJZleZvAAoJEB7WhxSLszZlV9UH/jdRmsigIE/zd/NwiHEEpwiM
JUGi2ZwX+CZsE+tZW64cccd4RPPAFNRdkOS60d9Iw+v3ouSEOng79OTPvrJXbuB/
W7JjRl1mYs/K3l9agHENovspSd9/GWJM5i/SMzZ7Mc2RPaK11DnZFgNddqIWsQfL
/JMusJeMB6lV4n2i3+sJlNI2IMUKfxw4E4Pfk14DTy2+2Uohr/CGzmceGbVFvXy9
UIRj9lG55HnbM1NCqp7TKF5uuHtvnQUgCBcTFKKdahR3J9PXGKSTxJZU8kBbo4jn
VAZ4uQMrmx8rgMZ7iU05si07ypkOhKefhG7AADm9QJPmmHjEwlJAsDUAv4By9cY=
=DJjJ
-----END PGP SIGNATURE-----



More information about the Talk-GB mailing list