Class CreateMultipolygonAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Destroyable

    public class CreateMultipolygonAction
    extends JosmAction
    Create multipolygon from selected ways automatically. New relation with type=multipolygon is created. If one or more of ways is already in relation with type=multipolygon or the way is not closed, then error is reported and no relation is created. The "inner" and "outer" roles are guessed automatically. First, bbox is calculated for each way. then the largest area is assumed to be outside and the rest inside. In cases with one "outside" area and several cut-ins, the guess should be always good ... In more complex (multiple outer areas) or buggy (inner and outer ways intersect) scenarios the result is likely to be wrong.
    See Also:
    Serialized Form