[OSM-talk] finding overlapping buildings

Pierre Béland pierzenh at yahoo.fr
Fri Nov 24 22:58:53 UTC 2017


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 <miketho16 at 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  
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20171124/8317b01d/attachment.html>


More information about the talk mailing list