Changeset 35976 in osm for applications/editors/josm/plugins/opendata
- Timestamp:
- 2022-06-14T20:11:21+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeographicReader.java
r35975 r35976 6 6 import java.awt.Component; 7 7 import java.awt.GraphicsEnvironment; 8 import java.awt.Point;9 8 import java.io.IOException; 10 9 import java.io.InputStream; … … 25 24 import javax.swing.Icon; 26 25 import javax.swing.JOptionPane; 27 import javax.xml.crypto.dsig.TransformException;28 26 29 27 import org.geotools.geometry.jts.JTS; … … 37 35 import org.geotools.util.factory.Hints; 38 36 import org.locationtech.jts.geom.LineString; 37 import org.locationtech.jts.geom.Point; 39 38 import org.opengis.geometry.MismatchedDimensionException; 40 39 import org.opengis.referencing.FactoryException; … … 44 43 import org.opengis.referencing.crs.ProjectedCRS; 45 44 import org.opengis.referencing.cs.CoordinateSystem; 45 import org.opengis.referencing.datum.Datum; 46 46 import org.opengis.referencing.operation.MathTransform; 47 47 import org.opengis.referencing.operation.OperationNotFoundException; 48 import org.opengis.referencing.operation.TransformException; 48 49 import org.openstreetmap.josm.data.coor.ILatLon; 49 50 import org.openstreetmap.josm.data.coor.LatLon; … … 54 55 import org.openstreetmap.josm.data.osm.RelationMember; 55 56 import org.openstreetmap.josm.data.osm.Way; 56 import org.openstreetmap.josm.data.projection.datum.Datum;57 57 import org.openstreetmap.josm.data.validation.tests.DuplicateWay; 58 58 import org.openstreetmap.josm.gui.ExtendedDialog; … … 113 113 LatLon ll = new LatLon(p.getY(), p.getX()); 114 114 for (Node node : nodes.values()) { 115 if (node. getCoor().equalsEpsilon(ll, ILatLon.MAX_SERVER_PRECISION)) {115 if (node.equalsEpsilon(ll, ILatLon.MAX_SERVER_PRECISION)) { 116 116 return node; 117 117 } … … 261 261 CoordinateSystem cs2 = crs2.getCoordinateSystem(); 262 262 if (!compareDebug("cs", cs1, cs2)) { 263 Integerdim1 = cs1.getDimension();264 Integerdim2 = cs2.getDimension();263 int dim1 = cs1.getDimension(); 264 int dim2 = cs2.getDimension(); 265 265 if (compareDebug("cs.dim", dim1, dim2)) { 266 266 for (int i = 0; i < dim1; i++) { … … 397 397 } 398 398 399 if ( candidates.size() > 0) {399 if (!candidates.isEmpty()) { 400 400 CoordinateReferenceSystem newCRS = candidates.get(0); 401 401 try {
Note:
See TracChangeset
for help on using the changeset viewer.