<div dir="ltr">Pierre,<div><br></div><div>Sorry about that. I have placed a new version on Github. Alternatively, within JOSM: Scripting -> Show scripting console (not needed with the new version).</div><div><br></div><div>Mike</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 24, 2017 at 3:58 PM, Pierre Béland <span dir="ltr"><<a href="mailto:pierzenh@yahoo.fr" target="_blank">pierzenh@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:verdana,helvetica,sans-serif;font-size:13px"><div><div>Great</div><div><br></div><div>Thanks Mike. I installed both plugins.<br></div><div><br></div><div>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
<span class="m_6248319129383779707ydp839588dccss-truncate m_6248319129383779707ydp839588dccss-truncate-target"><a href="https://github.com/MikeTho16/JOSM-Scripts/blob/master/SelectDuplicateBuilding.js" class="m_6248319129383779707ydp839588dcjs-navigation-open" id="m_6248319129383779707ydp839588dcece1b9973fb47fe2afce9f10f7f02620-fc3f34e86af14bea8755ca1ec4e224a9b65cfac6" title="SelectDuplicateBuilding.js" rel="nofollow" target="_blank">SelectDuplicateBuilding.js</a></span> and <span class="m_6248319129383779707ydpb03ea67fcss-truncate m_6248319129383779707ydpb03ea67fcss-truncate-target"><a href="https://github.com/MikeTho16/JOSM-Scripts/blob/master/SelectNonOrthogonalBuilding.js" class="m_6248319129383779707ydpb03ea67fjs-navigation-open" id="m_6248319129383779707ydpb03ea67f2b36b2a682059c5fd54a273f77b55e4c-87130f3d9f0e6440877af6440b9b95e02ac7a68d" title="SelectNonOrthogonalBuilding.js" rel="nofollow" target="_blank">SelectNonOrthogonalBuilding.js</a></span><br></div><div><br></div><div>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.</div><div><br></div><div>Running <span class="m_6248319129383779707ydpb03ea67fcss-truncate m_6248319129383779707ydpb03ea67fcss-truncate-target"><a href="https://github.com/MikeTho16/JOSM-Scripts/blob/master/SelectNonOrthogonalBuilding.js" class="m_6248319129383779707ydpb03ea67fjs-navigation-open" id="m_6248319129383779707ydpb03ea67f2b36b2a682059c5fd54a273f77b55e4c-87130f3d9f0e6440877af6440b9b95e02ac7a68d" title="SelectNonOrthogonalBuilding.js" rel="nofollow" target="_blank">SelectNonOrthogonalBuilding.js</a></span> on Windows 8.1 with Java 8.0 1210.13<br></div><div>Error message is<br></div><div>Failed to execute the script file<br>Error message:ReferenceError: Console is not defined SelectNonOrthogonalBuilding.<wbr>js#42<br>At:line 42<br><br>regard<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><span style="font-style:italic;color:rgb(0,0,191);font-weight:bold"> </span><br><span style="font-style:italic;color:rgb(0,0,191);font-weight:bold"></span><div class="m_6248319129383779707ydpbb7d2416signature"><span style="font-style:italic;color:rgb(0,0,191);font-weight:bold"><font face="garamond, new york, times, serif">Pierre </font><br></span></div></font></span></div><span class="">
<div><br></div><div><br></div>
<div id="m_6248319129383779707ydp7ac7e5bfyahoo_quoted_2075740288" class="m_6248319129383779707ydp7ac7e5bfyahoo_quoted">
<div style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;color:#26282a">
<div>
Le vendredi 24 novembre 2017 15:39:30 HNE, Mike Thompson <<a href="mailto:miketho16@gmail.com" target="_blank">miketho16@gmail.com</a>> a écrit :
</div>
<div><br></div>
<div><br></div>
<div><div id="m_6248319129383779707ydp7ac7e5bfyiv2206251946"><div><div dir="ltr"><div>Pierre,</div><div><br clear="none"></div><div>Here is a script to select buildings that are not square (not orthogonal):</div><div><br clear="none"></div><a shape="rect" href="https://github.com/MikeTho16/JOSM-Scripts" style="font-size:12.8px" rel="nofollow" target="_blank">https://github.com/MikeTho16/ JOSM-Scripts</a><br style="font-size:12.8px" clear="none"><div style="font-size:12.8px"><a shape="rect" class="m_6248319129383779707ydp7ac7e5bfyiv2206251946gmail-js-navigation-open" id="m_6248319129383779707ydp7ac7e5bfyiv2206251946gmail-2b36b2a682059c5fd54a273f77b55e4c-87130f3d9f0e6440877af6440b9b95e02ac7a68d" href="https://github.com/MikeTho16/JOSM-Scripts/blob/master/SelectNonOrthogonalBuilding.js" title="SelectNonOrthogonalBuilding.js" rel="nofollow" target="_blank">SelectNonOrthogonalBuilding.js</a><wbr> <br clear="none"></div><div style="font-size:12.8px"><br clear="none"></div><div style="font-size:12.8px"><div>To Run:</div><div>* Install JOSM's Scripting Plugin</div><div>* Place above file in a convenient location on your system </div><div>* Click "Scripting" (on top menu bar)</div><div>* Click "Run"</div><div>* Click "..." button and select this file.</div><div>* Click "Run"</div></div><div style="font-size:12.8px"><br clear="none"></div><div><div><span style="font-size:12.8px">Selects building which are not orthogonal, that is buildings where all corners </span><span style="font-size:12.8px">do no measure 90 degrees, with the following exceptions: </span></div><div><span style="font-size:12.8px">* Inline vertices (angles of 180 degrees) are ignored. </span></div><div><span style="font-size:12.8px">* Regular polygons are not selected as these are likely to be approximations of </span><span style="font-size:12.8px">circles or otherwise valid. </span></div><div><span style="font-size:12.8px">* There is a tolerance of +/- 1 degree. </span></div><div><span style="font-size:12.8px"><br clear="none"></span></div><div><span style="font-size:12.8px">The selected buildings are added to the current selection.</span></div></div><div><span style="font-size:12.8px"><br clear="none"></span></div><div><span style="font-size:12.8px">Mike</span></div></div></div></div></div>
</div>
</div></span></div></div></blockquote></div><br></div>