Scotland Street Lamp Import

Hi,

I am proposing to import the street lighting datasets from the eight Scottish councils that publish them under OGL (Clackmannanshire, Dundee City, Falkirk, Glasgow City, Moray, Orkney Islands, Perth and Kinross, and Stirling). This is a follow up to my City of Edinburgh Street Lamp Import and uses much of the same process.

Documentation

The wiki page for my import is located here: Scotland/Import/Street Lamps - OpenStreetMap Wiki

The downloads for the data are listed on the wiki page under Import Data > Background

You can find the latest GeoJSON files which have been translated to the OSM schema on the wiki page under Import Data > OSM Data Files

License

I have checked that this data is compatible with the ODbL.
All eight datasets are distributed under UK Open Government Licence (OGL) v3.0.

Abstract

The datasets contain 211,212 records, and after removing records that are not street lamps and merging duplicate points, 207,754 nodes are to be imported. After converting to the OSM scheme the final GeoJSON files come in at 52.1MiB combined.

Council Nodes
Clackmannanshire 9,674
Dundee City 25,770
Falkirk 28,737
Glasgow City 79,650
Moray 19,200
Orkney Islands 3,455
Perth and Kinross 25,620
Stirling 15,648

The data was converted to the OSM scheme through python scripts based on the one from my Edinburgh import.

I plan to conduct this import one council at a time using josm and the conflation plugin. There are around 1,800 existing street lamps across the eight areas, most of them in Glasgow, so any conflicts during conflation can be checked manually.

The list of tags to be imported can be found on the wiki page.
highway=street_lamp and light_source=lantern is added to all the lamps, along with the council as operator.

The Orkney Islands data is the most detailed and records the lamp type, mounting, material and luminaire of each lamp, so light:method and support are set per lamp there.

The Clackmannanshire data was last updated in May 2019 and the Falkirk data in May 2022, so some lamps may be missing there.

Any feedback would be greatly appreciated!

Best,
Papweer

Edits:

  • Removed default support=pole
4 Likes

How confident are you about support=pole - might the datasets not also contain non-pole-supported street lamps?

Some of the datasets do seem to have wall mounted lights so I removed the default support=pole. It also seems that some of the councils (Perth and Kinross, Clackmannanshire, Falkirk) do have info about where a light is mounted which I missed before so now the code detects that.

Generally I have to say the Edinburgh import has been pretty good. Positioning has been good and having the position of the streetlights has been good.

However, one thing we have noticed is that some of the streetlights in Edinburgh clearly don’t exist such as this one that is in the middle of a building Node: ‪PED24‬ (‪13923721140‬) | OpenStreetMap
(It used to be a car park) So there is some minor clean up needed over time, but I can’t see any way to avoid this, just something to be aware of generally.

The import has been preformed!

1 Like

Hi Papweer,

Thanks for the Scotland street lamp import - a great project. I’ve compared your Stirling GeoJSON with OSM and traced the changesets, and it looks like the upload was cut short.

  • 190853836 created 5,000 lamps and was reverted by 190854028 (“Upload stopped halfway though”).
  • The re-upload was 190854560 (10,000 created) and 190854566 (1,536 created, 112 modified). That is 11,648 changes against the 15,648 planned, so 4,000 short, and 190854566 closed seconds after it opened. All the changeset comments still say “an import of 15,648 streetlamps”.
  • Matching the council layer to OSM by ref or within 15 m, 10,937 of 15,668 lamps are in OSM and 4,731 are not. 4,710 of those 4,731 are in your GeoJSON, so they were prepared but aren’t in OSM: about 4,000 never uploaded, plus about 710 uploaded but no longer present (possibly cleaned up in 190890998 or 190891063 or by other mappers, which I haven’t checked).
  • The gaps are mostly refs from “SK” onwards (3,783), the Callander, Thornhill and Blairdrummond, Kilmadock and Carron Valley areas, and some SJ blocks. The rest of the import looks very good.

Could you re-run the conflation against current OSM data and upload the remaining lamps? I can send the 4,710 lamps from your own GeoJSON that aren’t in OSM, and a CSV with community council and ward. It might also be worth updating the wiki status so it reflects that the upload is not yet complete. I’m happy to check areas afterwards.

Thanks,
Andy

JOSM seems to have not re-uploaded the street-lamps that were part of the cancelled changeset. I have re-conflated the geojson and uploaded again in changeset 190972008.

Thanks for spotting the issue.

2 Likes

Great job Papweer.