Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread Mike Thompson
On Tue, Nov 28, 2017 at 2:28 PM, Pierre Béland  wrote:

> Wow  again, this time a lot more efficient.  With 29,000 ways, very fast
> Result.
>
Glad it is fast on 29,000, I only tested on 2,500.  Any additional ideas or
suggestions can be entered on GitHub (or you can just send them to me
directly).


>
> An other interesting aspect with your scripts, you let us learn how to
> make such scripts.
>
Happy to share what I have learned, but I feel I am still in the student
mode myself. Next I would like to create a plugin.
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread john whelan
I don't have an interest in buildings as such what a lot of my mapping is
concerned with validating HOT projects.  I generally sit on three and check
the work as its done.  Working like this I can catch new mappers making
mistakes and give them gentle feedback to get the overall quality of
mapping up a little.  It also helps get the project completed.

We are talking very new mappers here doing things like labeling buildings
name=road.  building=unclassified, highway=yes.  area=yes has dropped off
recently from the new mappers but its still fairly common.

As a percentage the errors aren't that high but from a data quality point
of view every little helps and if you catch them young they'll add fewer
errors in future or at least that is the hope.

Maproulette I seem to recall will spot crossing highways with no node.
Currently there are about a thousand of these in Egypt looking at
unclassified and above.  JOSM validation does quite a nice job of detecting
these and its a lot quicker than running maproulette.  Occasionally I'd
come across a pocket of duplicated buildings where one mapper had drawn
over the buildings a second time.  Sometimes it was even the same mapper
and that's where the interest came from.

I am aware that the area and number of buildings is used to estimate
population the exact incantations needed to do this I'm not familiar with
but duplicated buildings throw these calculations off because the same
building is counted twice and that's why I'd like to get rid of them.

One problem with using an XML dump is they age very quickly.  I use country
dumps, for adding crossing nodes and untagged ways they are fine for
roughly four days.  After that you start to get conflicts.  When deleting
the last thing you want to do is delete one of a pair of buildings if the
other has already been deleted.  So for deleting duplicate buildings it's
very much a case of go to the area and freshly download it.

For the case of twenty buildings mapped as one.  I really don't know what
to do.  From a population count point of view the area is roughly right and
generally I leave them alone.

Again for badly mapped buildings where they aren't square what do you do?
If you square them its an approximation and my science background says
anytime you approximate something you are adding in errors.

For ones that are three times the size of the buildings and look like a
flag blowing in the wind?  Again what do you do?  I think these are close
to junk and should probably be deleted.  Others will say no they should be
cleaned up.  Fine except cleaning them up takes far more effort than it
would take to remap them with the building_tool plugin and they really
screw up the population estimates.  Many of these have a HOT project number
in the tag by the way.

Cheerio John

On 28 November 2017 at 17:57, SandorS  wrote:

> John,
>
> yes, the buildings in Africa are really messed up. But yet, they are there
> in contrast to some largest digital map-makers. Just take a look on some
> examples like here https://goo.gl/CYVahc or here https://goo.gl/UWuBcf or
> here https://goo.gl/9iNYCm or here https://goo.gl/jUuqmS. There are
> several 10s of thousands similar errors like in the examples. But even
> though the absolute number is large, it is only a percent or two compared
> to the total number of buildings in Africa. And as I told you it is
> possible to repair almost all the above illustrated anomalies. It is
> challenging and I am working on it using the source data (XML dump) from
> some weeks ago.
>
> So, if you are patient for several days, you will get the buildings for
> Africa probably with the best preparation and based on the potential in the
> source data. The data will be in shp format accompanied by some statistics,
> additional geometries for control and a short documentation.
>
> Of course, if you don need these I will not bother you. But at least, you
> could use the stuff as an option to compare if you use other models.
> Anyway, the subject might not be of interest for other members so if you
> still want the buildings we could just switch to bilateral communication
> about some details (for instance Africa, the continent and Madagascar,
> eventually some small islands, in which projection(s) and so on).
>
> Regards, Sandor.
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[talk-ph] Fwd: [OSM-talk] finding overlapping buildings

2017-11-28 Thread Erwin Olario
This could be useful for the Project NOAH cleanup task[0].

How's that going, anyway? Maning?

/Erwin

[0]: https://github.com/OSMPH/papercut_fix/issues/13

-- Forwarded message -
From: Mike Thompson <miketh...@gmail.com>
Date: Wed, Nov 29, 2017, 04:13
Subject: Re: [OSM-talk] finding overlapping buildings
To: john whelan <jwhelan0...@gmail.com>
Cc: OpenStreetMap talk mailing list <t...@openstreetmap.org>


John, Pierre,

I made some improvements to the select duplicate buildings script. It now
uses a spatial index, which makes it a lot faster on large datasets. It
also now uses the actual area of the buildings and their intersection, as
opposed to their bounding boxes. I will work on your other requests, but
may not have a lot of time for the next few weeks.

Mike

https://github.com/MikeTho16/JOSM-Scripts

Select Duplicate Buildings
Selects duplicate, or near duplicate, area buildings in JOSM's active
datalayer.
A "near duplicate" is a building whose area overlaps another building's
area by more than 50%. Only the first building encountered of an
overlapping pair is selected. This is done so the issue does not have to be
looked at twice. The selected buildings are added to the current
selection.
Currently only works with buildings that are ways (not multipolygons).

To Run:
* Install JOSM's Scripting Plugin (only necessary once)
* Place file in a convenient location on your system (only necessary once)
* Click "Scripting" (on top menu bar)
* Click "Run"
* Click "..." button and select the script file.
* Click "Run"


___
talk mailing list
t...@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk
-- 

/Erwin Olario

e: er...@ngnuity.xyz | v/m: https://t.me/GOwin | s: https://mstdn.io/@GOwin
___
talk-ph mailing list
talk-ph@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-ph


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread Pierre Béland
Hi Frederik, 
I tried with the area I provided as example in Bali. Interesting to learn that 
we can export a group like that to JOSM for editing / correcting.See this zone 
https://www.openstreetmap.org/#map=17/-8.447237794027034/115.40394650097596

As I said in a thread for Maproulette, QA tools such as MapRoulette or Osmose, 
while exporting data, should use a common  tag added to te changeset metadata 
to describe the Coordination QA tools used to spot problems and edit an area. I 
am not sure if only the comment is recognized actually. If so, a hashtag could 
refer to both osmose and the item with something like #Osmose-item-xxx where 
xxx describes the item.
See this JOSM ticket that address transfer of HOT TM tags 
https://josm.openstreetmap.de/ticket/10758and this HOT TM ticket 
https://github.com/hotosm/osm-tasking-manager2/issues/703

 
Pierre 
 

Le mardi 28 novembre 2017 16:17:55 HNE, Frédéric Rodrigo 
 a écrit :  
 
 You can use the export menu to load all the pinned objects into JOSM, by 
using the remote command.


Le 28/11/2017 à 22:11, john whelan a écrit :
> The problem is how do you fix them?  Having something directly in JOSM 
> is useful. They tend to appear in clusters so step one is find the 
> cluster.  Step two is sort the duplicates out.
>
> There really is some very poor mapping of buildings and this at least 
> identifies the ones that there should be no disagreement about whether 
> they should be deleted or not.
>
> One day we'll sort out what to do about the very badly mapped 
> buildings that at least two other mappers have referred to as junk but 
> that's another story.
>
> Cheerio John
>
> On 28 November 2017 at 15:46, Frédéric Rodrigo  > wrote:
>
>    With Osmose you can also get only large building intersection by
>    filter on severity
>
>    
>http://osmose.openstreetmap.fr/en/map/#zoom=11⪫=49.9788=8.3169=Mapnik=T=0%2C8300=1%2C2==
>    
>
>
>    Or addressee the class 2 only.
>    http://osmose.openstreetmap.fr/en/map/#item=0=2
>    
>
>
>    Le 22/11/2017 à 02:26, john whelan a écrit :
>
>        >Osmose has an 'overlapping building' option. Top of the list
>
>        I want something to feed into JOSM and not just any building
>        that overlaps by 5%.
>
>        Thanks John
>
>        On 21 November 2017 at 19:49, Dave F
>                
>                >> wrote:
>
>            Osmose has an 'overlapping building' option. Top of the list
>
>            Note: Some building are drawn on top of eachother to
>        produce 3D
>            rendering of multi-storey buildings.
>
>            DaveF
>
>
>
>            On 21/11/2017 23:16, john whelan 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@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk
  ___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread SandorS
John,
yes, the buildings in Africa are really messed up. But yet, they are there in 
contrast to some largest digital map-makers. Just take a look on some examples 
like here https://goo.gl/CYVahc or here https://goo.gl/UWuBcf or here 
https://goo.gl/9iNYCm or here https://goo.gl/jUuqmS. There are several 10s of 
thousands similar errors like in the examples. But even though the absolute 
number is large, it is only a percent or two compared to the total number of 
buildings in Africa. And as I told you it is possible to repair almost all the 
above illustrated anomalies. It is challenging and I am working on it using the 
source data (XML dump) from some weeks ago.
So, if you are patient for several days, you will get the buildings for Africa 
probably with the best preparation and based on the potential in the source 
data. The data will be in shp format accompanied by some statistics, additional 
geometries for control and a short documentation.
Of course, if you don need these I will not bother you. But at least, you could 
use the stuff as an option to compare if you use other models. Anyway, the 
subject might not be of interest for other members so if you still want the 
buildings we could just switch to bilateral communication about some details 
(for instance Africa, the continent and Madagascar, eventually some small 
islands, in which projection(s) and so on).
Regards, Sandor.

Sent from Mail for Windows 10

From: john whelan
Sent: 28 November 2017 22:13
To: Frédéric Rodrigo
Cc: OpenStreetMap talk mailing list
Subject: Re: [OSM-talk] finding overlapping buildings

The problem is how do you fix them?  Having something directly in JOSM is 
useful. They tend to appear in clusters so step one is find the cluster.  Step 
two is sort the duplicates out.

There really is some very poor mapping of buildings and this at least 
identifies the ones that there should be no disagreement about whether they 
should be deleted or not.

One day we'll sort out what to do about the very badly mapped buildings that at 
least two other mappers have referred to as junk but that's another story.

Cheerio John


___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread Pierre Béland
Wow  again, this time a lot more efficient.  With 29,000 ways, very fast 
Result. 
I did not believe it since only perfect duplicates of buildings were selected. 
This was done by a new contributor that did participate to a geoweek mapathon 
responding for the Volcano emergency in Bali. He did use JOSM and was probably 
not trained enough to look at Validations results from JOSM. At least, he 
should have spot these duplicates of nodes+ways. In less then two weeks this 
contributor edited almost 25,000 JOSM objects (ie, nodes, ways or relations). A 
good prospect but quite important to correct rapidly of new contributors 
working so intensely. 
see this zone 
https://www.openstreetmap.org/#map=17/-8.447237794027034/115.40394650097596
Looking at this Bali area, I saw many new contributors quite motivated and who 
added a lot of buildings. But it seems not enough monitoring from the 
organizers. This tool can surely help.
 An other interesting aspect with your scripts, you let us learn how to make 
such scripts.
regard

Pierre 
 

Le mardi 28 novembre 2017 15:13:22 HNE, Mike Thompson  
a écrit :  
 
 John, Pierre,
I made some improvements to the select duplicate buildings script. It now uses 
a spatial index, which makes it a lot faster on large datasets. It also now 
uses the actual area of the buildings and their intersection, as opposed to 
their bounding boxes. I will work on your other requests, but may not have a 
lot of time for the next few weeks.
Mike
https://github.com/MikeTho16/JOSM-Scripts

Select Duplicate Buildings 
Selects duplicate, or near duplicate, area buildings in JOSM's active 
datalayer.A "near duplicate" is a building whose area overlaps another 
building'sarea by more than 50%. Only the first building encountered of an 
overlapping pair is selected. This is done so the issue does not have to be 
looked at twice. The selected buildings are added to the current selection.  
Currently only works with buildings that are ways (not multipolygons).
To Run:* Install JOSM's Scripting Plugin (only necessary once)* Place file in a 
convenient location on your system (only necessary once)* Click "Scripting" (on 
top menu bar)* Click "Run"* Click "..." button and select the script file.* 
Click "Run"

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk
  ___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread Frédéric Rodrigo
You can use the export menu to load all the pinned objects into JOSM, by 
using the remote command.



Le 28/11/2017 à 22:11, john whelan a écrit :
The problem is how do you fix them?  Having something directly in JOSM 
is useful. They tend to appear in clusters so step one is find the 
cluster.  Step two is sort the duplicates out.


There really is some very poor mapping of buildings and this at least 
identifies the ones that there should be no disagreement about whether 
they should be deleted or not.


One day we'll sort out what to do about the very badly mapped 
buildings that at least two other mappers have referred to as junk but 
that's another story.


Cheerio John

On 28 November 2017 at 15:46, Frédéric Rodrigo > wrote:


With Osmose you can also get only large building intersection by
filter on severity


http://osmose.openstreetmap.fr/en/map/#zoom=11=49.9788=8.3169=Mapnik=T=0%2C8300=1%2C2==



Or addressee the class 2 only.
http://osmose.openstreetmap.fr/en/map/#item=0=2



Le 22/11/2017 à 02:26, john whelan a écrit :

>Osmose has an 'overlapping building' option. Top of the list

I want something to feed into JOSM and not just any building
that overlaps by 5%.

Thanks John

On 21 November 2017 at 19:49, Dave F

>> wrote:

    Osmose has an 'overlapping building' option. Top of the list

    Note: Some building are drawn on top of eachother to
produce 3D
    rendering of multi-storey buildings.

    DaveF



    On 21/11/2017 23:16, john whelan 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@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread john whelan
The problem is how do you fix them?  Having something directly in JOSM is
useful. They tend to appear in clusters so step one is find the cluster.
Step two is sort the duplicates out.

There really is some very poor mapping of buildings and this at least
identifies the ones that there should be no disagreement about whether they
should be deleted or not.

One day we'll sort out what to do about the very badly mapped buildings
that at least two other mappers have referred to as junk but that's another
story.

Cheerio John

On 28 November 2017 at 15:46, Frédéric Rodrigo 
wrote:

> With Osmose you can also get only large building intersection by filter on
> severity
>
> http://osmose.openstreetmap.fr/en/map/#zoom=11=49.9788;
> lon=8.3169=Mapnik=T=
> 0%2C8300=1%2C2==
>
> Or addressee the class 2 only.
> http://osmose.openstreetmap.fr/en/map/#item=0=2
>
>
> Le 22/11/2017 à 02:26, john whelan a écrit :
>
>> >Osmose has an 'overlapping building' option. Top of the list
>>
>> I want something to feed into JOSM and not just any building that
>> overlaps by 5%.
>>
>> Thanks John
>>
>> On 21 November 2017 at 19:49, Dave F > > wrote:
>>
>> Osmose has an 'overlapping building' option. Top of the list
>>
>> Note: Some building are drawn on top of eachother to produce 3D
>> rendering of multi-storey buildings.
>>
>> DaveF
>>
>>
>>
>> On 21/11/2017 23:16, john whelan 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@openstreetmap.org 
>>> https://lists.openstreetmap.org/listinfo/talk
>>> 
>>>
>>
>>
>> > =link_campaign=sig-email_content=emailclient>
>> Virus-free. www.avast.com
>> > =link_campaign=sig-email_content=emailclient>
>>
>>
>> <#m_3123707017832396152_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> ___
>> talk mailing list
>> talk@openstreetmap.org 
>> https://lists.openstreetmap.org/listinfo/talk
>> 
>>
>>
>>
>>
>> ___
>> talk mailing list
>> talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk
>>
>
>
>
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread john whelan
Very nice.  The process I'm using is run it to find the rough area that
contains duplicate overlapping buildings.  Then redownload the area so its
fresh.  Then scroll through the buildings.  Sometimes one is beeter tagged
and more accurate than the other so you really do have to scroll through
them with the to do list.

Thanks John

On 28 November 2017 at 15:11, Mike Thompson  wrote:

> John, Pierre,
>
> I made some improvements to the select duplicate buildings script. It now
> uses a spatial index, which makes it a lot faster on large datasets. It
> also now uses the actual area of the buildings and their intersection, as
> opposed to their bounding boxes. I will work on your other requests, but
> may not have a lot of time for the next few weeks.
>
> Mike
>
> https://github.com/MikeTho16/JOSM-Scripts
>
> Select Duplicate Buildings
> Selects duplicate, or near duplicate, area buildings in JOSM's active
> datalayer.
> A "near duplicate" is a building whose area overlaps another building's
> area by more than 50%. Only the first building encountered of an
> overlapping pair is selected. This is done so the issue does not have to
> be
> looked at twice. The selected buildings are added to the current
> selection.
> Currently only works with buildings that are ways (not multipolygons).
>
> To Run:
> * Install JOSM's Scripting Plugin (only necessary once)
> * Place file in a convenient location on your system (only necessary once)
> * Click "Scripting" (on top menu bar)
> * Click "Run"
> * Click "..." button and select the script file.
> * Click "Run"
>
>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread Frédéric Rodrigo
With Osmose you can also get only large building intersection by filter 
on severity


http://osmose.openstreetmap.fr/en/map/#zoom=11=49.9788=8.3169=Mapnik=T=0%2C8300=1%2C2==

Or addressee the class 2 only.
http://osmose.openstreetmap.fr/en/map/#item=0=2


Le 22/11/2017 à 02:26, john whelan a écrit :

>Osmose has an 'overlapping building' option. Top of the list

I want something to feed into JOSM and not just any building that 
overlaps by 5%.


Thanks John

On 21 November 2017 at 19:49, Dave F > wrote:


Osmose has an 'overlapping building' option. Top of the list

Note: Some building are drawn on top of eachother to produce 3D
rendering of multi-storey buildings.

DaveF



On 21/11/2017 23:16, john whelan 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@openstreetmap.org 
https://lists.openstreetmap.org/listinfo/talk






Virus-free. www.avast.com




<#m_3123707017832396152_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

___
talk mailing list
talk@openstreetmap.org 
https://lists.openstreetmap.org/listinfo/talk





___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk




___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-28 Thread Mike Thompson
John, Pierre,

I made some improvements to the select duplicate buildings script. It now
uses a spatial index, which makes it a lot faster on large datasets. It
also now uses the actual area of the buildings and their intersection, as
opposed to their bounding boxes. I will work on your other requests, but
may not have a lot of time for the next few weeks.

Mike

https://github.com/MikeTho16/JOSM-Scripts

Select Duplicate Buildings
Selects duplicate, or near duplicate, area buildings in JOSM's active
datalayer.
A "near duplicate" is a building whose area overlaps another building's
area by more than 50%. Only the first building encountered of an
overlapping pair is selected. This is done so the issue does not have to be
looked at twice. The selected buildings are added to the current
selection.
Currently only works with buildings that are ways (not multipolygons).

To Run:
* Install JOSM's Scripting Plugin (only necessary once)
* Place file in a convenient location on your system (only necessary once)
* Click "Scripting" (on top menu bar)
* Click "Run"
* Click "..." button and select the script file.
* Click "Run"
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-25 Thread john whelan
/7HUX43 or here https://goo.gl/TjfP9o or here
> https://goo.gl/H8E3L5 or here https://goo.gl/ZY64u3  ... not to mention
> the confusion in the Venezia lagoon. Trusting the tags only, these areas
> are redundant and should be ignored but according the Wiki rules and
> trusting the geometry these smaller areas should be holes.
>
> Having in mind only raster map-making, the mentioned anomalies/errors are
> not so important (blue is blue for lakes, green is green for forests...).
> At the same time for the OSM based GIS and vector map-making the overlaps
> present serious issues/problems. Just take the procedures like
> defragmentation, data generalization, tiling, rectangular clipping and so
> on.
>
> Finally, anomalies/errors in the OSM source data in certain cases
> represent a valuable attribute. There is no richer and larger source of
> serious and complex issues for research and academia related to topology,
> polygon algebra, algorithms, programing... than the OSM source data. So,
> insisting on corrections, especially by mass editing, should not be a OSM
> strategy. These errors are there, some will go and many new will come.
> Instead, strengthen you data preparation tool and offer it to users with
> arguments. But please, do not touch the source data. What you think is an
> error probably not error to me/others and your corrections will just make
> more troubles to me/others.
>
> Regards, Sandor.
>
>
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *john whelan <jwhelan0...@gmail.com>
> *Sent: *22 November 2017 00:19
> *To: *OpenStreetMap talk mailing list <talk@openstreetmap.org>
> *Subject: *[OSM-talk] finding overlapping buildings
>
>
>
> 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@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-25 Thread john whelan
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  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  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  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 <
>>> miketh...@gmail.com> a écrit :
>>>
>>>
>>> On Fri, Nov 24, 2017 at 3:43 PM, john whelan 
>>>  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.
>>>
>>
>>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-25 Thread SandorS
John,
by a step of abstraction, you are touching one of the most complex and 
complicated issues related to the OSM source data. Namely, replications and 
overlaps as its consequences. Let us focus on area overlaps and especially on 
the kind you have mentioned – when the overlapping geometries, with high 
probability, represent the same object or parts of it. There are 100s of 
thousands of these in the source data. The consequences are large/huge number 
of errors/anomalies present in all today publicly available OSM based maps. I 
am not sure what JOSM (and other tools) can do with these errors but obviously 
very little because they are there. The issue has been up for discussion 
several times on this and other OSM forums.
The majority of the replications are cased by bot/programmatic/mass edits. We 
have really large number of edits-over-edits-over... and, as you know, checking 
whether two almost overlapping geometries represent the same real-world object 
is far beyond a simple exercise and the power of a “script” solution. This many 
replications are the reason why we don’t like (even don’t want) extensive use 
of mass edits, quick fixes and similar options (exception, with DWG’s 
approval).  There are several typical area overlapping classes/types. To be 
short, just in few words and links to illustrative examples (arguments) from 
the lake area objects.
The outer border polygons exactly overlap but the areas have different hole 
structures (covers case of identical geometries). For instance here 
https://osm.org/go/y3Q5zNY- (missing islands, how many?).
Outer polygon section of a smaller area exactly overlaps an outer border 
section of a larger area like here https://goo.gl/aAvEkM (exact fragment 
overlaps, how many?).
Corridor replica (overlaps) when some border polygons of two geometries are so 
close to each other that with a very high probability the geometries represent 
the same real world object, like here https://goo.gl/DtF2nA. 
Just to mention some and of course, many combinations of the former cases. 
While a solid/robust data preparation should detect and correct/repair (and it 
does) the mentioned overlap cases, still there is an overlap class raising a 
dilemma what to do. These are when a smaller area is strictly inside of a 
larger in the same class, e.g. lakes (the smaller outer is strictly inside a 
larger outer and outside any holes of the larger) like here 
https://goo.gl/7HUX43 or here https://goo.gl/TjfP9o or here 
https://goo.gl/H8E3L5 or here https://goo.gl/ZY64u3  ... not to mention the 
confusion in the Venezia lagoon. Trusting the tags only, these areas are 
redundant and should be ignored but according the Wiki rules and trusting the 
geometry these smaller areas should be holes.
Having in mind only raster map-making, the mentioned anomalies/errors are not 
so important (blue is blue for lakes, green is green for forests...). At the 
same time for the OSM based GIS and vector map-making the overlaps present 
serious issues/problems. Just take the procedures like defragmentation, data 
generalization, tiling, rectangular clipping and so on. 
Finally, anomalies/errors in the OSM source data in certain cases represent a 
valuable attribute. There is no richer and larger source of serious and complex 
issues for research and academia related to topology, polygon algebra, 
algorithms, programing... than the OSM source data. So, insisting on 
corrections, especially by mass editing, should not be a OSM strategy. These 
errors are there, some will go and many new will come. Instead, strengthen you 
data preparation tool and offer it to users with arguments. But please, do not 
touch the source data. What you think is an error probably not error to 
me/others and your corrections will just make more troubles to me/others.
Regards, Sandor.



Sent from Mail for Windows 10

From: john whelan
Sent: 22 November 2017 00:19
To: OpenStreetMap talk mailing list
Subject: [OSM-talk] finding overlapping buildings

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@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Pierre Béland
John Whelan saying> I wouldn't like to say I specialize on validating 
maperthons so much as do clean ups in areas> where they have left their foot 
print.

Sorry, I wanted to say you have a lot of expertise with validations, and yes 
ending up cleaning after big mapping operations with new contributors.
Newbies often trace buildings and such validations should help organizers to 
monitor and assure errors are corrected.
 
Pierre 
 ___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread john whelan
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  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  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 <
>> miketh...@gmail.com> a écrit :
>>
>>
>> On Fri, Nov 24, 2017 at 3:43 PM, john whelan 
>>  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.
>>
>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Pierre Béland
I am not sure what is already included in JOSM validations, but with orthogonal 
and Duplicates, we cover most of the  newbies tracing buildings problems that 
we can automatically spot analyzing the data. 
Others would be about dimensions that exceed normal building size, this 
including big institutions, shopping centers etc.
- Maximum area size considered as building 
- Maximum length ( we dont want one cm x few km)
Newbies often badly interpret imagery which brings in coverage or accuracy 
problems. We cannot identify all problems with these test  but I think that the 
tests we covered so far should identify most of these problematic 
contributions, helping to concentrate on contributors with most of the problems.
John who specializes on Validation of Mapathon might see other aspects to look 
at.
 
Pierre 
 

Le vendredi 24 novembre 2017 20:12:04 HNE, Mike Thompson 
 a écrit :  
 
 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  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 
 a écrit :  
 
 On Fri, Nov 24, 2017 at 3:43 PM, john whelan   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.  

  ___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Mike Thompson
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  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 <
> miketh...@gmail.com> a écrit :
>
>
> On Fri, Nov 24, 2017 at 3:43 PM, john whelan 
>  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.
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Pierre Béland
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 
 a écrit :  
 
 On Fri, Nov 24, 2017 at 3:43 PM, john whelan  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.  ___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Mike Thompson
Pierre,

Sorry about that.  I have placed a new version on Github.  Alternatively,
within JOSM: Scripting -> Show scripting console (not needed with the new
version).

Mike

On Fri, Nov 24, 2017 at 3:58 PM, Pierre Béland  wrote:

> Great
>
> Thanks Mike. I installed both plugins.
>
> Here is my experience with the installation. To add the Scripting button
> on the Main Menu, I went to the Plugins section and installed the Scripting
> plugin. I was then able to follow your instructions to install and run
> SelectDuplicateBuilding.js
> 
> and SelectNonOrthogonalBuilding.js
> 
>
> Before we run the script, I suggest to load buildings for a small area. Up
> to 500 buildings, it is ok for me. Then delay increase rapidly if I move to
> 1,000 - 2,000 buildings and more. With Windows 8.1 task manager, I could
> see that Java was running. I just had to wait for completion of the task.
>
> Running  SelectNonOrthogonalBuilding.js
> 
> on Windows 8.1 with Java 8.0 1210.13
> Error message is
> Failed to execute the script file
> Error message:ReferenceError: Console is not defined
> SelectNonOrthogonalBuilding.js#42
> At:line 42
>
> regard
>
> Pierre
>
>
> Le vendredi 24 novembre 2017 15:39:30 HNE, Mike Thompson <
> miketh...@gmail.com> a écrit :
>
>
> Pierre,
>
> Here is a script to select buildings that are not square (not orthogonal):
>
> https://github.com/MikeTho16/ JOSM-Scripts
> 
> SelectNonOrthogonalBuilding.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 building which are not orthogonal, that is buildings where all
> corners do no measure 90 degrees, with the following exceptions:
> * Inline vertices (angles of 180 degrees) are ignored.
> * Regular polygons are not selected as these are likely to be
> approximations of circles or otherwise valid.
> * There is a tolerance of +/- 1 degree.
>
> The selected buildings are added to the current selection.
>
> Mike
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Mike Thompson
On Fri, Nov 24, 2017 at 3:43 PM, john whelan  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.
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Pierre Béland
Great
Thanks Mike. I installed both plugins.

Here is my experience with the installation. To add the Scripting button on the 
Main Menu, I went to the Plugins section and installed the Scripting plugin. I 
was then able to follow your instructions to install and run 
SelectDuplicateBuilding.js and SelectNonOrthogonalBuilding.js

Before we run the script, I suggest to load buildings for a small area. Up to 
500 buildings, it is ok for me. Then delay increase rapidly if I move to 1,000 
- 2,000 buildings and more. With Windows 8.1 task manager, I could see that 
Java was running. I just had to wait for completion of the task.
Running  SelectNonOrthogonalBuilding.js on Windows 8.1 with Java 8.0 1210.13
Error message is
Failed to execute the script file
Error message:ReferenceError: Console is not defined 
SelectNonOrthogonalBuilding.js#42
At:line 42

regard
 
Pierre 
 

Le vendredi 24 novembre 2017 15:39:30 HNE, Mike Thompson 
 a écrit :  
 
 Pierre,
Here is a script to select buildings that are not square (not orthogonal):
https://github.com/MikeTho16/ JOSM-Scripts
SelectNonOrthogonalBuilding.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 building which are not orthogonal, that is buildings where all corners 
do no measure 90 degrees, with the following exceptions:   * Inline vertices 
(angles of 180 degrees) are ignored.   * Regular polygons are not selected as 
these are likely to be approximations of circles or otherwise valid.   * There 
is a tolerance of +/- 1 degree.   
The selected buildings are added to the current selection.
Mike  ___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread john whelan
For a small number it works well.  When faced with a sample with a thousand
buildings it takes a little longer.

The real test is how do you cope with a 2 mb file of OSM data containing a
few thousand buildings?

But having said that what you can do is if you spot one then download the
surrounding area in a new layer and run it.

So thank you kindly sir.

Cheerio John

On 24 November 2017 at 13:58, Mike Thompson  wrote:

> 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  > 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 
>> 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  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 
 wrote:

> >
> in JOSM
> 
> 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 
> wrote:
>
>> This doesn't take into account the 50% overlap, but:
>>
>> in JOSM
>> 
>> 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 
>> 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@openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/talk
>>>
>>>
>>
>

>>>
>>> ___
>>> talk mailing list
>>> talk@openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/talk
>>>
>>>
>>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Mike Thompson
Pierre,

Here is a script to select buildings that are not square (not orthogonal):

https://github.com/MikeTho16/JOSM-Scripts
SelectNonOrthogonalBuilding.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 building which are not orthogonal, that is buildings where all
corners do no measure 90 degrees, with the following exceptions:
* Inline vertices (angles of 180 degrees) are ignored.
* Regular polygons are not selected as these are likely to be
approximations of circles or otherwise valid.
* There is a tolerance of +/- 1 degree.

The selected buildings are added to the current selection.

Mike

On Fri, Nov 24, 2017 at 11:58 AM, Mike Thompson  wrote:

> 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  > 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 
>> 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  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 
 wrote:

> >
> in JOSM
> 
> 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 
> wrote:
>
>> This doesn't take into account the 50% overlap, but:
>>
>> in JOSM
>> 
>> 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 
>> 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@openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/talk
>>>
>>>
>>
>

>>>
>>> ___
>>> talk mailing list
>>> talk@openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/talk
>>>
>>>
>>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-24 Thread Mike Thompson
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 
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 
> 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  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 
>>> wrote:
>>>
 >
 in JOSM
 
 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 
 wrote:

> This doesn't take into account the 50% overlap, but:
>
> in JOSM
> 
> 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 
> 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@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk
>>
>>
>

>>>
>>
>> ___
>> talk mailing list
>> talk@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk
>>
>>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread Denis Carriere
+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  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  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 
>> wrote:
>>
>>> >
>>> in JOSM
>>> 
>>> 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  wrote:
>>>
 This doesn't take into account the 50% overlap, but:

 in JOSM
 
 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 
 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@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
>

>>>
>>
>
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread john whelan
>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  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 
> wrote:
>
>> >
>> in JOSM
>> 
>> 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  wrote:
>>
>>> This doesn't take into account the 50% overlap, but:
>>>
>>> in JOSM
>>> 
>>> 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 
>>> 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@openstreetmap.org
 https://lists.openstreetmap.org/listinfo/talk


>>>
>>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread Mike Thompson
>  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  wrote:

> >
> in JOSM
> 
> 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  wrote:
>
>> This doesn't take into account the 50% overlap, but:
>>
>> in JOSM
>> 
>> 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 
>> 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@openstreetmap.org
>>> https://lists.openstreetmap.org/listinfo/talk
>>>
>>>
>>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread john whelan
>Osmose has an 'overlapping building' option. Top of the list

I want something to feed into JOSM and not just any building that overlaps
by 5%.

Thanks John

On 21 November 2017 at 19:49, Dave F  wrote:

> Osmose has an 'overlapping building' option. Top of the list
>
> Note: Some building are drawn on top of eachother to produce 3D rendering
> of multi-storey buildings.
>
> DaveF
>
>
>
> On 21/11/2017 23:16, john whelan 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 
> listtalk@openstreetmap.orghttps://lists.openstreetmap.org/listinfo/talk
>
>
>
>
> 
>  Virus-free.
> www.avast.com
> 
> <#m_3123707017832396152_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> ___
> talk mailing list
> talk@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread john whelan
>
in JOSM

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  wrote:

> This doesn't take into account the 50% overlap, but:
>
> in JOSM
> 
> 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 
> 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@openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk
>>
>>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread Mateusz Konieczny
On Wed, 22 Nov 2017 00:49:10 +
Dave F  wrote:

> Note: Some building are drawn on top of eachother to produce 3D 
> rendering of multi-storey buildings.

It is still tagging that should be fixed (building:part is typical
solution, in rare cases like
http://wiki.openstreetmap.org/wiki/File:Ankara_3D.png retagging is not
enough and everything should be deleted )

___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread Dave F

Osmose has an 'overlapping building' option. Top of the list

Note: Some building are drawn on top of eachother to produce 3D 
rendering of multi-storey buildings.


DaveF


On 21/11/2017 23:16, john whelan 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@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk




---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


Re: [OSM-talk] finding overlapping buildings

2017-11-21 Thread Mike Thompson
This doesn't take into account the 50% overlap, but:

in JOSM

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  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@openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk
>
>
___
talk mailing list
talk@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk


[OSM-talk] finding overlapping buildings

2017-11-21 Thread john whelan
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@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk