Using WA DNR LiDAR imagery in OpenStreetMap’s iD editor
Washington State’s Department of Natural Resources collects and publishes LiDAR data covering much of the state. LiDAR imagery is created by flying specially-equipped aircraft over areas of interest and using light pulses to determine the precise distance to the ground. This data is later assembled into elevation maps. You can browse the maps using the DNR LiDAR Portal interactive viewer.
The LiDAR maps are very high resolution (about 2 meters per pixel). In addition, LiDAR penetrates tree cover to reveal the shape of the ground hidden underneath. These attributes make LiDAR data a great resource for mapping streams, hiking trails, and forest roads.
All of the DNR LiDAR data is the public domain, so this imagery can be used without worry when contributing to OSM. About one-third of the state has already been surveyed, and the DNR plans to survey the entire state.
Using DNR LiDAR maps in iD is very simple. The DNR runs an ArcGIS server which provides a WMS endpoint. iD can use this endpoint to display a custom imagery layer.
Launch iD (osm.org/edit). Open the Background Settings panel on the right (shortcut: B), choose “Custom” from the Backgrounds list, and then paste this huge URL into the box in the pop-up that appears:
https://lidarportal.dnr.wa.gov/arcgis/services/lidar/wadnr_hillshade/MapServer/WmsServer?service=WMS&request=GetMap&layers=151h%2C100h%2C916h%2C914h%2C664h%2C662h%2C152h%2C101h%2C359h%2C357h%2C545h%2C153h%2C102h%2C154h%2C103h%2C658h%2C656h%2C670h%2C668h%2C354h%2C352h%2C742h%2C740h%2C748h%2C746h%2C930h%2C932h%2C752h%2C155h%2C104h%2C676h%2C674h%2C828h%2C826h%2C1038h%2C1036h%2C868h%2C866h%2C880h%2C878h%2C886h%2C884h%2C874h%2C872h%2C892h%2C890h%2C1022h%2C1020h%2C1297h%2C1295h%2C156h%2C105h%2C682h%2C680h%2C758h%2C756h%2C688h%2C686h%2C1060h%2C1058h%2C313h%2C311h%2C1084h%2C1082h%2C583h%2C581h%2C157h%2C106h%2C371h%2C369h%2C968h%2C966h%2C1274h%2C1272h%2C764h%2C762h%2C107h%2C158h%2C108h%2C159h%2C109h%2C302h%2C304h%2C910h%2C908h%2C160h%2C110h%2C161h%2C111h%2C1096h%2C1094h%2C1250h%2C1248h%2C1105h%2C1110h%2C1108h%2C1171h%2C1169h%2C162h%2C112h%2C163h%2C113h%2C164h%2C114h%2C1133h%2C1131h%2C165h%2C115h%2C166h%2C116h%2C550h%2C548h%2C834h%2C832h%2C541h%2C537h%2C380h%2C383h%2C533h%2C386h%2C529h%2C389h%2C392h%2C525h%2C521h%2C517h%2C513h%2C395h%2C509h%2C398h%2C401h%2C404h%2C407h%2C505h%2C501h%2C410h%2C413h%2C497h%2C493h%2C489h%2C416h%2C419h%2C422h%2C481h%2C485h%2C477h%2C425h%2C428h%2C474h%2C440h%2C471h%2C467h%2C431h%2C463h%2C434h%2C459h%2C437h%2C455h%2C451h%2C447h%2C443h%2C1262h%2C1260h%2C167h%2C117h%2C843h%2C944h%2C942h%2C168h%2C118h%2C822h%2C820h%2C816h%2C814h%2C769h%2C767h%2C578h%2C576h%2C1066h%2C1064h%2C694h%2C692h%2C700h%2C698h%2C588h%2C586h%2C1102h%2C1100h%2C1139h%2C1137h%2C1032h%2C774h%2C772h%2C1048h%2C1046h%2C1145h%2C1143h%2C169h%2C119h%2C1054h%2C1052h%2C1149h%2C1153h%2C170h%2C120h%2C1115h%2C1113h%2C555h%2C553h%2C1244h%2C1242h%2C1159h%2C1157h%2C1121h%2C1119h%2C1072h%2C1070h%2C171h%2C121h%2C172h%2C122h%2C706h%2C704h%2C1165h%2C1163h%2C858h%2C856h%2C898h%2C896h%2C903h%2C901h%2C1238h%2C173h%2C123h%2C863h%2C861h%2C1010h%2C1008h%2C1004h%2C1002h%2C974h%2C972h%2C980h%2C978h%2C986h%2C984h%2C992h%2C990h%2C998h%2C996h%2C558h%2C174h%2C124h%2C175h%2C125h%2C811h%2C176h%2C126h%2C563h%2C561h%2C177h%2C127h%2C178h%2C128h%2C780h%2C778h%2C129h%2C920h%2C179h%2C130h%2C1180h%2C1178h%2C1186h%2C1184h%2C1280h%2C1278h%2C1192h%2C1190h%2C1285h%2C1283h%2C1291h%2C1289h%2C786h%2C784h%2C568h%2C566h%2C791h%2C789h%2C593h%2C591h%2C180h%2C131h%2C598h%2C596h%2C181h%2C132h%2C601h%2C606h%2C604h%2C609h%2C612h%2C617h%2C615h%2C622h%2C620h%2C848h%2C846h%2C182h%2C133h%2C183h%2C134h%2C184h%2C135h%2C573h%2C571h%2C794h%2C185h%2C136h%2C627h%2C625h%2C798h%2C632h%2C630h%2C637h%2C635h%2C186h%2C137h%2C1198h%2C1196h%2C1204h%2C1202h%2C906h%2C138h%2C1210h%2C1208h%2C853h%2C851h%2C1078h%2C1076h%2C187h%2C139h%2C365h%2C363h%2C188h%2C140h%2C938h%2C936h%2C189h%2C141h%2C319h%2C317h%2C324h%2C322h%2C330h%2C328h%2C336h%2C334h%2C342h%2C340h%2C190h%2C142h%2C803h%2C801h%2C191h%2C143h%2C1301h%2C1028h%2C1026h%2C962h%2C960h%2C1216h%2C1214h%2C712h%2C710h%2C718h%2C716h%2C376h%2C374h%2C724h%2C722h%2C642h%2C640h%2C192h%2C144h%2C1174h%2C1016h%2C1014h%2C926h%2C924h%2C807h%2C1222h%2C1220h%2C193h%2C145h%2C194h%2C146h%2C1228h%2C1226h%2C195h%2C147h%2C196h%2C148h%2C647h%2C645h%2C950h%2C948h%2C197h%2C149h%2C1268h%2C1266h%2C1234h%2C1232h%2C198h%2C150h%2C730h%2C728h%2C956h%2C954h%2C736h%2C734h%2C1090h%2C1088h%2C652h%2C650h%2C348h%2C346h%2C1310h%2C1308h%2C1322h%2C1320h%2C1352h%2C1350h%2C1334h%2C1332h%2C1316h%2C1314h%2C1340h%2C1338h%2C1346h%2C1344h%2C1328h%2C1326h%2C1256h%2C1254h%2C1358h%2C1356h%2C1364h%2C1362h%2C1370h%2C1368h%2C1376h%2C1374h%2C1382h%2C1380h%2C1388h%2C1386h%2C1394h%2C1392h%2C1400h%2C1398h%2C1406h%2C1404h%2C1412h%2C1410h%2C1418h%2C1416h%2C1454h%2C1452h%2C1466h%2C1464h%2C1472h%2C1470h%2C1460h%2C1458h%2C1476h%2C1480h%2C1498h%2C1496h%2C1486h%2C1484h%2C1492h%2C1490h%2C1424h%2C1422h%2C1430h%2C1428h%2C1436h%2C1434h%2C1442h%2C1440h%2C1448h%2C1446h%2C1504h%2C1502h%2C1510h%2C1508h%2C1516h%2C1514h%2C1522h%2C1520h%2C1528h%2C1526h%2C1534h%2C1532h%2C1540h%2C1538h%2C1546h%2C1544h%2C1552h%2C1550h%2C1558h%2C1556h%2C1564h%2C1562h%2C1570h%2C1568h%2C1594h%2C1592h%2C1600h%2C1598h%2C1606h%2C1604h%2C1612h%2C1610h%2C1618h%2C1616h&styles=&format=image%2Fpng&transparent=true&version=1.1.1&height={height}&width={width}&srs=EPSG%3A3857&bbox={bbox}
That template string tells iD how to query the DNR’s WMS server. Click “OK” and you should see the imagery appear right away.
Note: the large list of layers in the URL above was generated from the GetCapabilities
endpoint on the WMS server, which provides a list of all the available layers. The server provides each individual LiDAR survey area as a separate layer, so if you’re just interested in all the LiDAR imagery available, you need to include all the layer IDs in the request. I generated that list of layers using the following command.
curl -s --compressed 'https://lidarportal.dnr.wa.gov/arcgis/services/lidar/wadnr_hillshade/MapServer/WmsServer?service=WMS&request=GetCapabilities' | xidel -s - -e '//Layer/Name' | paste -sd "," - | sed 's/,/%2C/g'
The tool xidel
is available on Github and can also be installed with Homebrew if you’re using a mac.