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