Ignore:
Timestamp:
2022-06-13T19:51:10+02:00 (2 years ago)
Author:
Don-vip
Message:

see #22104 - fix deprecation warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeographicReader.java

    r35125 r35975  
    66import java.awt.Component;
    77import java.awt.GraphicsEnvironment;
     8import java.awt.Point;
    89import java.io.IOException;
    910import java.io.InputStream;
     
    2425import javax.swing.Icon;
    2526import javax.swing.JOptionPane;
     27import javax.xml.crypto.dsig.TransformException;
    2628
    2729import org.geotools.geometry.jts.JTS;
     
    3537import org.geotools.util.factory.Hints;
    3638import org.locationtech.jts.geom.LineString;
    37 import org.locationtech.jts.geom.Point;
    3839import org.opengis.geometry.MismatchedDimensionException;
    3940import org.opengis.referencing.FactoryException;
     
    4344import org.opengis.referencing.crs.ProjectedCRS;
    4445import org.opengis.referencing.cs.CoordinateSystem;
    45 import org.opengis.referencing.datum.Datum;
    4646import org.opengis.referencing.operation.MathTransform;
    4747import org.opengis.referencing.operation.OperationNotFoundException;
    48 import org.opengis.referencing.operation.TransformException;
     48import org.openstreetmap.josm.data.coor.ILatLon;
    4949import org.openstreetmap.josm.data.coor.LatLon;
    5050import org.openstreetmap.josm.data.osm.DataSet;
     
    5454import org.openstreetmap.josm.data.osm.RelationMember;
    5555import org.openstreetmap.josm.data.osm.Way;
     56import org.openstreetmap.josm.data.projection.datum.Datum;
    5657import org.openstreetmap.josm.data.validation.tests.DuplicateWay;
    5758import org.openstreetmap.josm.gui.ExtendedDialog;
     
    112113            LatLon ll = new LatLon(p.getY(), p.getX());
    113114            for (Node node : nodes.values()) {
    114                 if (node.getCoor().equalsEpsilon(ll)) {
     115                if (node.getCoor().equalsEpsilon(ll, ILatLon.MAX_SERVER_PRECISION)) {
    115116                    return node;
    116117                }
Note: See TracChangeset for help on using the changeset viewer.