Changeset 21127 in osm
- Timestamp:
- 2010-05-05T02:49:32+02:00 (15 years ago)
- Location:
- applications/editors/josm
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicateNode.java
r20828 r21127 87 87 public void visit(Node n) { 88 88 if (n.isUsable()) { 89 LatLon rounded = n.getCoor().getRoundedToOsmPrecision(); 89 //LatLon rounded = n.getCoor().getRoundedToOsmPrecision(); 90 LatLon ori=n.getCoor(); 91 double precision = 10e-7; 92 LatLon rounded = new LatLon( 93 Math.round(ori.lat() / precision) * precision, 94 Math.round(ori.lon() / precision) * precision 95 ); 96 90 97 if (potentialDuplicates.get(rounded) == null) { 91 98 // in most cases there is just one node at a given position. We
Note:
See TracChangeset
for help on using the changeset viewer.