[OSM-talk] finding overlapping buildings
Mike Thompson
miketho16 at gmail.com
Fri Nov 24 18:58:56 UTC 2017
https://github.com/MikeTho16/JOSM-Scripts
SelectDuplicateBuildings.js
To Run:
* Install JOSM's Scripting Plugin
* Place above file in a convenient location on your system
* Click "Scripting" (on top menu bar)
* Click "Run"
* Click "..." button and select this file.
* Click "Run"
Selects duplicate, or near duplicate, area buildings in JOSM's active data
layer. A "near duplicate" is a building whose bounding box overlaps another
building's bounding box by more than 50% (I couldn't get a pure area
compare to work). Only the first building encountered of an overlapping
pair is selected. The selected buildings are added to the current selection.
On Wed, Nov 22, 2017 at 12:17 AM, Denis Carriere <carriere.denis at gmail.com>
wrote:
> +1 Good question John,
>
> I'll also look into that as well, I really don't think there's a solution
> for that in JOSM (find me all overlapping buildings that overlap by +50%).
>
> *~~~~~~*
> *@DenisCarriere*
>
> On Tue, Nov 21, 2017 at 5:53 PM, john whelan <jwhelan0112 at gmail.com>
> wrote:
>
>> >Might have to write a script to do that. I will look into it. I don't
>> think there is a way to do it with the standard query syntax or mapcss.
>>
>> Thanks John
>>
>> On 21 November 2017 at 20:31, Mike Thompson <miketho16 at gmail.com> wrote:
>>
>>> > I'm not after ever building that overlaps by a small amount
>>> Might have to write a script to do that. I will look into it. I don't
>>> think there is a way to do it with the standard query syntax or mapcss.
>>>
>>>
>>>
>>> On Tue, Nov 21, 2017 at 6:25 PM, john whelan <jwhelan0112 at gmail.com>
>>> wrote:
>>>
>>>> >
>>>> in JOSM
>>>> <ctrl-f>
>>>> Search Syntax = Mapcss selector (lower left of search dialog)
>>>>
>>>> enter the following for the search string:
>>>> area:closed:areaStyle[building] ⧉ area:closed:areaStyle[building]
>>>>
>>>> (The character ⧉ is unicode 29c9)
>>>>
>>>> This works but gives the same results as select buildings then validate
>>>> with crossing ways. I'm not after ever building that overlaps by a small
>>>> amount its the duplicates if I can get them.
>>>> Thanks John
>>>>
>>>> On 21 November 2017 at 19:06, Mike Thompson <miketho16 at gmail.com>
>>>> wrote:
>>>>
>>>>> This doesn't take into account the 50% overlap, but:
>>>>>
>>>>> in JOSM
>>>>> <ctrl-f>
>>>>> Search Syntax = Mapcss selector (lower left of search dialog)
>>>>>
>>>>> enter the following for the search string:
>>>>> area:closed:areaStyle[building] ⧉ area:closed:areaStyle[building]
>>>>>
>>>>> (The character ⧉ is unicode 29c9)
>>>>>
>>>>>
>>>>> On Tue, Nov 21, 2017 at 4:16 PM, john whelan <jwhelan0112 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Can someone describe a method I can locate these in JOSM. I'm not
>>>>>> after crossing buildings but just those that are mapped twice so two
>>>>>> buildings with 50% or more overlap.
>>>>>>
>>>>>> Straight duplicates aren't a problem but ones that are drawn twice by
>>>>>> two different mappers are. Yes I know it shouldn't happen but it does.
>>>>>>
>>>>>> Thanks John
>>>>>>
>>>>>> _______________________________________________
>>>>>> talk mailing list
>>>>>> talk at openstreetmap.org
>>>>>> https://lists.openstreetmap.org/listinfo/talk
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> talk mailing list
>> talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20171124/41096d2c/attachment-0001.html>
More information about the talk
mailing list