The dataset contains 58,854 records, and after removing records with invalid coordinates, 58,819 nodes are to be imported. After converting to the OSM scheme the final GeoJSON comes in at 18.1MiB.
I plan to conduct this import in one batch using josm and the conflation plugin. There are only 180 existing street lamps that overlap with the data so any conflicts during conflation can be checked manually.
The list of tags to be imported can be found on the wiki page.
As all street lamps in Edinburgh managed by the council use led lamps so I plan to add ālight:method=ledā to all lamps.
I also would appreciate comment on light:method vs lamp_type.
support=pole will also be added to all lamps as all records have feature__1=SL: Lamp Post. Additionally after checking all non-pole mounted lamps that I know of, they do not seem to be included in the data.
Thanks for this! Iām glad I could be an inspiration In the output GeoJSON it looks like youāre missing the base light_source=lantern tag, and support=* should probably be light:support=*
I completely missed light_source=lantern, added now.
As for light:support=* the proposal mentions using support=* and I canāt find any documentation for light:support=* anywhere.
@maxwellward what do you think about choosing a software license for your original script? Iām an Edinburgh local and am wondering about long-term re-use and adaptation of the script - if for example the format (or field values) of the street lamp dataset from Edinburgh Council changes in future. (cc @Papweer)
Looks like I might have been wrong! Iāll have to update my script as well!
Iām happy to add a license to the original gist on GitHub. Do you think MIT would be appropriate? I donāt mind how itās used, copied, or shared, with or without attribution, but MIT seems more broadly used and understood than something like Unlicense.
CC0 could work as well but Iām not sure if people prefer one or the other.
MIT is a widely understood and enforced license and would be a very suitable choice if you are happy with the grants it gives people (they can use the code freely and derive it) and the responsibilities it requires of them (they have to share the license text alongside derivative works).
Sorry for a delayed reply: my first thought was to suggest MIT licensing (as @gurglypipe did too); itās straightforward and well-recognised.
For complex/involved software where thereās a risk that a codebase could be used by competing interests that might not share their changes/improvements back to users, I tend to prefer GPL or even AGPL - I donāt feel strongly that thatās worthwhile in this case, though.
Someone did an import of all (about 35,000) the streetlights in Dublin City (but not surrounding councils) and deleted the pre-existing ones (I think about 3,000).
There are a few complications:
Lighting is associated with a variety of organisations - council, non-council road operator, non-council housing operator, power network operators own poles, power supplierās own light fittings, light rail catenary supports. This can make the operator=* tag complicated.
Some lighting is on man_made = mast, e.g. at motorway interchanges.
There is significant lighting mapped that isnāt on public roads - port, national parks, universities, shopping centres, sports grounds and other car parks.
Not all lighting is on a pole - some is ground mounted, on a building or other wall, etc.
The council data might not be accurate (numbered pole on wrong street; pole has been removed; supports misidentified, etc.) or precise (all poles are offset by X metres in Y direction; position is rounded off inappropriately).
Comparing all the data for a few streets before doing a full import might be useful.
Lighting is associated with a variety of organisations
As far as I know this dataset only includes street lighting the council is directly responsible for and keeps track of. I havenāt investigated this too much though so I may be wrong.
Some lighting is on man_made = mast, e.g. at motorway interchanges.
Not all lighting is on a pole - some is ground mounted, on a building or other wall, etc.
This data is only of pole mounted lighting as:
All records have feature__1=SL: Lamp Post
Iāve checked areas which I know of that have non-pole mounted lighting, managed by the council (e.g tunnels) and they are missing from the data.
Iāve also checked abnormal height values (anything over 10m and under 3m) and there seems to be nothing.
There is significant lighting mapped that isnāt on public roads - port, national parks, universities, shopping centres, sports grounds and other car parks.
Since Iām conflating data instead of deleting existing data this shouldnāt be an issue.
The council data might not be accurate
In terms of location I have checked many lamps and the worst error I have seen was about 2m and those cases are very rare. Most lamps are within 0.5m.
Iāve not seen any issues with material, though I have only been able to check a limited number of materials.
There are 19 lamps with a height of 0 and all other heights seem pretty accurate. Any lamp with a height of 0 has the height key removed.
The field with the most issues is the commission (start_date) field. It has many āNot Applicableā or random word values that canāt be interpreted as a date. For all these poles Iāve not added any start_date key at all.
I did have a look at the raw data, and agree it looks pretty good to me.
One thing that is interesting; the data does look to be t least 2 years out of date. But there are newer ares that have been around for longer but arenāt included in the dataset. Ideally if we are going to import this, it would be good to see if we can get the council to publish some more up to data data?
My final question is the data Street Lighting Columns it is released under āOpen Government License v3.0ā but it then says:
āThe data was captured by the City of Edinburgh Council against Ordnance Survey basemaps and requires the following attribution statement to acknowledge the source of information:
The data has already been updated once since itās publishing, and if any further updates were to be published, they could be imported without much hassle. As for now I feel that the data is up to date enough that any differences are minor and can be updated at a later date if new data becomes available.
As for the OS license it only applies to the basemap the data is presented on as described on the Ordnance Survey wiki page. Thus it is fine to use in OSM.