Changeset 7828 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2014-12-19T01:52:29+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DatasetConsistencyTest.java
r7502 r7828 92 92 long startTime = System.currentTimeMillis(); 93 93 for (Node node : dataSet.getNodes()) { 94 if (!node.isIncomplete() && node.isVisible() && (node.getCoor() == null || node.getEastNorth() == null)) {94 if (!node.isIncomplete() && node.isVisible() && !node.isLatLonKnown()) { 95 95 printError("COMPLETE WITHOUT COORDINATES", "%s is not incomplete but has null coordinates", node); 96 96 } -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r6830 r7828 35 35 private double north = Double.NaN; 36 36 37 private boolean isLatLonKnown() { 37 /** 38 * Determines if this node has valid coordinates. 39 * @return {@code true} if this node has valid coordinates 40 * @since 7828 41 */ 42 public final boolean isLatLonKnown() { 38 43 return !Double.isNaN(lat) && !Double.isNaN(lon); 39 44 } … … 198 203 void setDataset(DataSet dataSet) { 199 204 super.setDataset(dataSet); 200 if (!isIncomplete() && isVisible() && (getCoor() == null || getEastNorth() == null))205 if (!isIncomplete() && isVisible() && !isLatLonKnown()) 201 206 throw new DataIntegrityProblemException("Complete node with null coordinates: " + toString()); 202 207 } -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r7796 r7828 601 601 if (Main.pref.getBoolean("debug.checkNullCoor", true)) { 602 602 for (Node n: nodes) { 603 if (n.isVisible() && !n.isIncomplete() && (n.getCoor() == null || n.getEastNorth() == null))603 if (n.isVisible() && !n.isIncomplete() && !n.isLatLonKnown()) 604 604 throw new DataIntegrityProblemException("Complete visible node with null coordinates: " + toString(), 605 605 "<html>" + tr("Complete node {0} with null coordinates in way {1}",
Note:
See TracChangeset
for help on using the changeset viewer.