Changeset 15244 in josm for trunk/src


Ignore:
Timestamp:
2019-07-12T20:03:56+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #17886 - remove check for old-style multipolygons (removed from OSM database in May 2017)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MultipolygonTest.java

    r15183 r15244  
    44import static org.openstreetmap.josm.tools.I18n.marktr;
    55import static org.openstreetmap.josm.tools.I18n.tr;
    6 import static org.openstreetmap.josm.tools.I18n.trn;
    76
    87import java.awt.geom.Area;
     
    6362    /** No area style for multipolygon */
    6463    public static final int NO_STYLE = 1610;
    65     /** Multipolygon relation should be tagged with area tags and not the outer way(s) */
    66     public static final int NO_STYLE_POLYGON = 1611;
     64    // no longer used: Multipolygon relation should be tagged with area tags and not the outer way(s) NO_STYLE_POLYGON = 1611;
    6765    /** Area style on outer way */
    6866    public static final int OUTER_STYLE = 1613;
     
    112110    /**
    113111     * Various style-related checks:<ul>
    114      * <li>{@link #NO_STYLE_POLYGON}: Multipolygon relation should be tagged with area tags and not the outer way</li>
    115112     * <li>{@link #INNER_STYLE_MISMATCH}: With the currently used mappaint style the style for inner way equals the multipolygon style</li>
    116113     * <li>{@link #OUTER_STYLE_MISMATCH}: Style for outer way mismatches</li>
     
    136133                    errors.add(TestError.builder(this, Severity.OTHER, NO_STYLE)
    137134                            .message(tr("No area style for multipolygon"))
    138                             .primitives(r)
    139                             .build());
    140                 } else {
    141                     /* old style multipolygon - solve: copy tags from outer way to multipolygon */
    142                     errors.add(TestError.builder(this, Severity.ERROR, NO_STYLE_POLYGON)
    143                             .message(trn("Multipolygon relation should be tagged with area tags and not the outer way",
    144                                     "Multipolygon relation should be tagged with area tags and not the outer ways",
    145                                     polygon.getOuterWays().size()))
    146135                            .primitives(r)
    147136                            .build());
Note: See TracChangeset for help on using the changeset viewer.