Changeset 4869 in josm for trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
- Timestamp:
- 2012-01-24T21:52:43+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r4806 r4869 5 5 import static org.openstreetmap.josm.tools.I18n.tr; 6 6 7 import java.awt.GridBagLayout;8 import java.awt.geom.Area;9 7 import java.util.ArrayList; 10 8 import java.util.Collection; … … 16 14 import java.util.Map; 17 15 import java.util.Set; 18 19 import javax.swing.JLabel;20 import javax.swing.JOptionPane;21 import javax.swing.JPanel;22 16 23 17 import org.openstreetmap.josm.Main; … … 35 29 import org.openstreetmap.josm.data.validation.Test; 36 30 import org.openstreetmap.josm.data.validation.TestError; 37 import org.openstreetmap.josm.gui.ConditionalOptionPaneUtil;38 31 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 39 32 import org.openstreetmap.josm.tools.MultiMap; … … 54 47 Math.round(o.getCoor().lat() / precision) * precision, 55 48 Math.round(o.getCoor().lon() / precision) * precision 56 );49 ); 57 50 } 58 51 … … 82 75 } 83 76 84 protected static int DUPLICATE_NODE = 1;85 protected static int DUPLICATE_NODE_MIXED = 2;86 protected static int DUPLICATE_NODE_OTHER = 3;87 protected static int DUPLICATE_NODE_UNCLOSED = 4;88 protected static int DUPLICATE_NODE_BUILDING = 10;89 protected static int DUPLICATE_NODE_BOUNDARY = 11;90 protected static int DUPLICATE_NODE_HIGHWAY = 12;91 protected static int DUPLICATE_NODE_LANDUSE = 13;92 protected static int DUPLICATE_NODE_NATURAL = 14;93 protected static int DUPLICATE_NODE_POWER = 15;94 protected static int DUPLICATE_NODE_RAILWAY = 16;95 protected static int DUPLICATE_NODE_WATERWAY = 17;77 protected final static int DUPLICATE_NODE = 1; 78 protected final static int DUPLICATE_NODE_MIXED = 2; 79 protected final static int DUPLICATE_NODE_OTHER = 3; 80 protected final static int DUPLICATE_NODE_UNCLOSED = 4; 81 protected final static int DUPLICATE_NODE_BUILDING = 10; 82 protected final static int DUPLICATE_NODE_BOUNDARY = 11; 83 protected final static int DUPLICATE_NODE_HIGHWAY = 12; 84 protected final static int DUPLICATE_NODE_LANDUSE = 13; 85 protected final static int DUPLICATE_NODE_NATURAL = 14; 86 protected final static int DUPLICATE_NODE_POWER = 15; 87 protected final static int DUPLICATE_NODE_RAILWAY = 16; 88 protected final static int DUPLICATE_NODE_WATERWAY = 17; 96 89 97 90 /** The map of potential duplicates. … … 204 197 DUPLICATE_NODE_UNCLOSED, 205 198 mm.get(tagSet) 206 ));199 )); 207 200 } else if (nbType>1) { 208 201 String msg = marktr("Mixed type duplicated nodes"); … … 215 208 DUPLICATE_NODE_MIXED, 216 209 mm.get(tagSet) 217 ));210 )); 218 211 } else if (typeMap.get("highway")) { 219 212 String msg = marktr("Highway duplicated nodes"); … … 226 219 DUPLICATE_NODE_HIGHWAY, 227 220 mm.get(tagSet) 228 ));221 )); 229 222 } else if (typeMap.get("railway")) { 230 223 String msg = marktr("Railway duplicated nodes"); … … 237 230 DUPLICATE_NODE_RAILWAY, 238 231 mm.get(tagSet) 239 ));232 )); 240 233 } else if (typeMap.get("waterway")) { 241 234 String msg = marktr("Waterway duplicated nodes"); … … 248 241 DUPLICATE_NODE_WATERWAY, 249 242 mm.get(tagSet) 250 ));243 )); 251 244 } else if (typeMap.get("boundary")) { 252 245 String msg = marktr("Boundary duplicated nodes"); … … 259 252 DUPLICATE_NODE_BOUNDARY, 260 253 mm.get(tagSet) 261 ));254 )); 262 255 } else if (typeMap.get("power")) { 263 256 String msg = marktr("Power duplicated nodes"); … … 270 263 DUPLICATE_NODE_POWER, 271 264 mm.get(tagSet) 272 ));265 )); 273 266 } else if (typeMap.get("natural")) { 274 267 String msg = marktr("Natural duplicated nodes"); … … 281 274 DUPLICATE_NODE_NATURAL, 282 275 mm.get(tagSet) 283 ));276 )); 284 277 } else if (typeMap.get("building")) { 285 278 String msg = marktr("Building duplicated nodes"); … … 292 285 DUPLICATE_NODE_BUILDING, 293 286 mm.get(tagSet) 294 ));287 )); 295 288 } else if (typeMap.get("landuse")) { 296 289 String msg = marktr("Landuse duplicated nodes"); … … 303 296 DUPLICATE_NODE_LANDUSE, 304 297 mm.get(tagSet) 305 ));298 )); 306 299 } else { 307 300 String msg = marktr("Other duplicated nodes"); … … 314 307 DUPLICATE_NODE_OTHER, 315 308 mm.get(tagSet) 316 ));309 )); 317 310 318 311 } … … 336 329 DUPLICATE_NODE, 337 330 duplicates 338 ));331 )); 339 332 } 340 333 }
Note:
See TracChangeset
for help on using the changeset viewer.