Changeset 21127 in osm


Ignore:
Timestamp:
2010-05-05T02:49:32+02:00 (14 years ago)
Author:
nakor
Message:

First binary version of undelete plugin

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  
    8787        public void visit(Node n) {
    8888                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
    9097                        if (potentialDuplicates.get(rounded) == null) {
    9198                                // in most cases there is just one node at a given position. We
Note: See TracChangeset for help on using the changeset viewer.