Changeset 6248 in josm for trunk/src/org/openstreetmap/josm/io/OsmReader.java
- Timestamp:
- 2013-09-23T16:47:50+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmReader.java
r6093 r6248 18 18 import javax.xml.stream.XMLStreamReader; 19 19 20 import org.openstreetmap.josm.Main; 20 21 import org.openstreetmap.josm.data.Bounds; 21 22 import org.openstreetmap.josm.data.coor.LatLon; … … 171 172 Bounds copy = new Bounds(bounds); 172 173 bounds.normalize(); 173 System.out.println("Bbox " + copy + " is out of the world, normalized to " + bounds);174 Main.info("Bbox " + copy + " is out of the world, normalized to " + bounds); 174 175 } 175 176 DataSource src = new DataSource(bounds, origin); … … 233 234 } 234 235 if (w.isDeleted() && !nodeIds.isEmpty()) { 235 System.out.println(tr("Deleted way {0} contains nodes", w.getUniqueId()));236 Main.info(tr("Deleted way {0} contains nodes", w.getUniqueId())); 236 237 nodeIds = new ArrayList<Long>(); 237 238 } … … 280 281 } 281 282 if (r.isDeleted() && !members.isEmpty()) { 282 System.out.println(tr("Deleted relation {0} contains members", r.getUniqueId()));283 Main.info(tr("Deleted relation {0} contains members", r.getUniqueId())); 283 284 members = new ArrayList<RelationMemberData>(); 284 285 } … … 356 357 protected void parseUnknown(boolean printWarning) throws XMLStreamException { 357 358 if (printWarning) { 358 System.out.println(tr("Undefined element ''{0}'' found in input stream. Skipping.", parser.getLocalName()));359 Main.info(tr("Undefined element ''{0}'' found in input stream. Skipping.", parser.getLocalName())); 359 360 } 360 361 while (true) { … … 445 446 throwException(tr("Illegal value for attribute ''version'' on OSM primitive with ID {0}. Got {1}.", Long.toString(current.getUniqueId()), versionString)); 446 447 } else if (version < 0 && current.getUniqueId() <= 0) { 447 System.out.println(tr("WARNING:Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 0, "0.6"));448 Main.warn(tr("Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 0, "0.6")); 448 449 version = 0; 449 450 } 450 451 } else if (ds.getVersion().equals("0.5")) { 451 452 if (version <= 0 && current.getUniqueId() > 0) { 452 System.out.println(tr("WARNING:Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 1, "0.5"));453 Main.warn(tr("Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 1, "0.5")); 453 454 version = 1; 454 455 } else if (version < 0 && current.getUniqueId() <= 0) { 455 System.out.println(tr("WARNING:Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 0, "0.5"));456 Main.warn(tr("Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 0, "0.5")); 456 457 version = 0; 457 458 } … … 467 468 } else if (current.getUniqueId() > 0 && ds.getVersion() != null && ds.getVersion().equals("0.5")) { 468 469 // default version in 0.5 files for existing primitives 469 System.out.println(tr("WARNING:Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 1, "0.5"));470 Main.warn(tr("Normalizing value of attribute ''version'' of element {0} to {2}, API version is ''{3}''. Got {1}.", current.getUniqueId(), version, 1, "0.5")); 470 471 version= 1; 471 472 } else if (current.getUniqueId() <= 0 && ds.getVersion() != null && ds.getVersion().equals("0.5")) { … … 496 497 if (current.getUniqueId() <= 0) { 497 498 // for a new primitive we just log a warning 498 System.out.println(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.", v, current.getUniqueId()));499 Main.info(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.", v, current.getUniqueId())); 499 500 current.setChangesetId(0); 500 501 } else { … … 506 507 if (current.getUniqueId() <= 0) { 507 508 // for a new primitive we just log a warning 508 System.out.println(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.", v, current.getUniqueId()));509 Main.info(tr("Illegal value for attribute ''changeset'' on new object {1}. Got {0}. Resetting to 0.", v, current.getUniqueId())); 509 510 current.setChangesetId(0); 510 511 } else {
Note:
See TracChangeset
for help on using the changeset viewer.