[Imports] Large scale building edits in Fiwila, Zambia

Jo winfixit at gmail.com
Tue Jun 13 23:02:07 UTC 2017


If you use your script to blow up the nodes into squares or rectangles, you
can also use 'w' to improve the placement of the nodes (before uploading
them, of course). Finish off with 'q' to make them rectangular once again.

']' makes the todo plugin move to the next object.


Polyglot

2017-06-13 22:36 GMT+02:00 Bjoern Hassler <bjohas+mw at gmail.com>:

> Dear Rory, dear Martin, dear friends,
>
> thanks for the message, and the instructions. Particularly the reminder of
> the TODO plugin. I assume it's ok with you that I'll add some of this to
> the wiki, as a page on improving buildings from nodes->ways?
>
> We have a script here
> https://github.com/OSM-Utilities/JOSM-Scripts-HOT/blob/maste
> r/processNodeBuildings.js
> that adds menu items to JOSM (that can be moved to the toolbar, or be tied
> to keyboard shortcuts). Each menu item does a "replaces geometry"
> (preserving the node/tags) to various choices of shapes (large/small
> circle, rectangle, square, .... it's configurable). After replacement, the
> object remains selected, so that it's fast to use scale/rotate in JOSM to
> make the object more precise. The script can also identify node buildings
> (and go through them one by one), though it it's just as good to do this
> with the TODO plugin.
>
> So you'd just use
> - "]" to go forward
> - keystroke for "replace node with circle" (or whatever other shape you
> need)
> - scale/rotate/reposition/extrude
> - repeat.
>
> Of course, for complex buildings it'll still take time, but the above is
> the fastest I can think of- at least it automatically preserves the
> previous node and any tags. Any other suggestions or anything else people
> might want to see in the script? https://taginfo.
> openstreetmap.org/keys/?key=building says there's just about 0.9m
> node[building], so it's worth making the process as efficient as possible.
>
> Best wishes,
> Bjoern
>
>
> On 13 June 2017 at 16:14, Rory McCann <rory at technomancy.org> wrote:
>
>> On 11/06/17 23:17, Bjoern Hassler wrote:
>>
>>> Of course. However, it was a significant effort to mark the 3200
>>> buildings, and it's impossible for me to manually trace 3200
>>> buildings.
>>>
>>
>> I don't think tracing 3,200 buildings is impossible. It's a fair amount
>> of work, but it can be done.
>>
>> With JOSM, and a few plugins, you can make it much easier. You'll need
>> the todo, building_tools, utilsplugin2 and continousDownload plugins.
>>
>> Once those plugins are installed, open up the advanced preferences and
>> disable 'default-on' for continuosDownload ( set
>> plugin.continuos_download.active_default to false), reduce the wait time
>> (plugin.continuos_download.wait_time 10), and for this task you should
>> turn off default tags for the building tools (buildings_tools.tags [])
>>
>> When you've done that, this is how you remap all the buildings:
>>
>> 1) Use Overpass Turbo to find the nodes with building tag and export
>> them into JOSM. This Overpass query will find them:
>>
>>     [out:xml][timeout:2500];(node["building"]({{bbox}}););out meta;>;out
>> meta qt;
>>
>> 2) Select all nodes (Control-A) and add them to the TODO-list
>>
>> 3) Double click on the topmost entry in the todo list, to zoom into one,
>> and download that area. Turn on some aerial imagery. Turn on "continuous
>> download (File menu).
>>
>> 4) press B to map the current building as a rectangle, or draw a
>> triangle, and press Shit-O to create a circle.
>>
>> 5) press S, then select the original point and shift left click to
>> select the new building, and press Control-Shift-G (replace geometry) to
>> move the tags over to the way, and remove the old node
>>
>> 6) Press ] to go to the next node. Go back to step 4.
>>
>> This is a fast an quick way to remap buildings from aerial imagery.
>>
>> I saw the discussion on the HOT list about buildings mapped as nodes,
>> and started to remap and clean up the instances in Ireland. If you keep
>> at them, you can do it! If you recruit one more person, you'll half your
>> work, etc.
>>
>> From looking at Ireland, I've noticed that there are many nodes with the
>> building tag which are badly placed, or there's one node for many
>> buildings, or no building at all. If you manually look at them, you'll
>> get better results than a script.
>>
>> I hope that helps,
>>
>> Rory
>>
>>
>>
>> _______________________________________________
>> Imports mailing list
>> Imports at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/imports
>>
>
>
> _______________________________________________
> Imports mailing list
> Imports at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/imports
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/imports/attachments/20170614/074544c6/attachment.html>


More information about the Imports mailing list