Class SelectDuplicateBuildingAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.plugins.mapathoner.SelectDuplicateBuildingAction
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
,org.openstreetmap.josm.tools.Destroyable
public final class SelectDuplicateBuildingAction
extends org.openstreetmap.josm.actions.JosmAction
Select Duplicate Building
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, nor multipart buildings).
This script is open source and licensed under GPL.
- Since:
- xxx
- Author:
- Mike Thompson (Github:MikeTho16, OSM: tekim), qeef
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.JosmAction.ActiveLayerChangeAdapter, org.openstreetmap.josm.actions.JosmAction.LayerChangeAdapter, org.openstreetmap.josm.actions.JosmAction.SelectionChangeAdapter
-
Field Summary
Fields inherited from class org.openstreetmap.josm.actions.JosmAction
sc
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newSelectDuplicateBuildingAction
. -
Method Summary
Methods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
SelectDuplicateBuildingAction
public SelectDuplicateBuildingAction()Constructs a newSelectDuplicateBuildingAction
.
-
-
Method Details
-
actionPerformed
-