[OSM-talk] finding overlapping buildings

john whelan jwhelan0112 at gmail.com
Sat Nov 25 10:34:44 UTC 2017


Thinking it through I can already select buildings then validate for
crossing ways.  Dump the selection in a new layer and save it.

Restart JOSM to clear the memory then load up the saved layer and the todo
list.  I can even chap down the number loaded into the layer.

I think this is workable.

Unclosed buildings aren't an issue.  I can pick these up in JOSM with
unclosed ways then just look at the buildings one by one.  There doesn't
seem to be that many.

Thanks John

On 24 November 2017 at 21:01, john whelan <jwhelan0112 at gmail.com> wrote:

> My gut feel is as simple as possible especially when dealing with larger
> areas.
>
> I loaded a 215 kb file into JOSM and found 181 duplicated buildings but
> after dumping them in a todo list JOSM seemed reluctant to delete them one
> at a time.
>
> Could it work through a selected area?  There is already a crossing way
> validation so selecting buildings only then validating for crossing
> buildings then running the script on what was left might be faster.
>
> I wouldn't like to say I specialize on validating maperthons so much as do
> clean ups in ares where they have left their foot print.
>
> Thanks John
>
> On 24 November 2017 at 20:12, Mike Thompson <miketho16 at gmail.com> wrote:
>
>> I have a fix for the speed issue, but need to test before posting. There
>> is also bug with how the overlap is computed.  Do you want both tests in
>> the same script? I could include "building ways with unclosed area",
>> anything else?
>>
>> On Fri, Nov 24, 2017 at 4:14 PM, Pierre Béland <pierzenh at yahoo.fr> wrote:
>>
>>> Ok
>>>
>>> for the script, I simply commented the console print message and it does
>>> work.
>>>
>>> Great if developpers could collaborate to improve this as a Building
>>> Validation plugin. It could include other features such as building ways
>>> with unclosed area
>>>
>>>
>>> Pierre
>>>
>>>
>>> Le vendredi 24 novembre 2017 18:03:48 HNE, Mike Thompson <
>>> miketho16 at gmail.com> a écrit :
>>>
>>>
>>> On Fri, Nov 24, 2017 at 3:43 PM, john whelan <jwhelan0112 at gmail.com>
>>>  wrote:
>>>
>>> > For a small number it works well.  When faced with a sample with a
>>> thousand buildings it takes a little longer.
>>> I will work on speeding it up.  It this proves useful to the community,
>>> I may try and make it into a plugin (to also include the
>>> SelectNonOrthogonalBuildings function), which should be faster.  Advice
>>> from experienced JOSM developers welcome on this matter.
>>>
>>>
>>> > So thank you kindly sir.
>>> You are welcome.  Glad to be able to help out.
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20171125/8b5b7d4a/attachment.html>


More information about the talk mailing list