Changeset 36176 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2023-10-19T21:58:56+02:00 (16 months ago)
- Location:
- applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/at/AustrianGmlHandler.java
r36173 r36176 3 3 4 4 import org.geotools.referencing.CRS; 5 import org. opengis.referencing.FactoryException;6 import org. opengis.referencing.NoSuchAuthorityCodeException;7 import org. opengis.referencing.crs.CoordinateReferenceSystem;5 import org.geotools.api.referencing.FactoryException; 6 import org.geotools.api.referencing.NoSuchAuthorityCodeException; 7 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 8 8 import org.openstreetmap.josm.plugins.opendata.core.io.geographic.DefaultGmlHandler; 9 9 -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/fr/FrenchShpHandler.java
r36072 r36176 5 5 import org.geotools.referencing.operation.projection.LambertConformal2SP; 6 6 import org.geotools.referencing.operation.projection.MapProjection.AbstractProvider; 7 import org. opengis.referencing.FactoryException;8 import org. opengis.referencing.crs.CoordinateReferenceSystem;9 import org. opengis.referencing.crs.ProjectedCRS;10 import org. opengis.referencing.datum.GeodeticDatum;11 import org. opengis.referencing.operation.MathTransform;7 import org.geotools.api.referencing.FactoryException; 8 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 9 import org.geotools.api.referencing.crs.ProjectedCRS; 10 import org.geotools.api.referencing.datum.GeodeticDatum; 11 import org.geotools.api.referencing.operation.MathTransform; 12 12 import org.openstreetmap.josm.plugins.opendata.core.io.geographic.DefaultShpHandler; 13 13 import org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeotoolsHandler; -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/DefaultGeographicHandler.java
r36173 r36176 3 3 4 4 import org.geotools.referencing.CRS; 5 import org. opengis.referencing.FactoryException;6 import org. opengis.referencing.NoSuchAuthorityCodeException;7 import org. opengis.referencing.crs.CoordinateReferenceSystem;5 import org.geotools.api.referencing.FactoryException; 6 import org.geotools.api.referencing.NoSuchAuthorityCodeException; 7 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 8 8 9 9 public abstract class DefaultGeographicHandler implements GeographicHandler { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/DefaultGmlHandler.java
r36072 r36176 3 3 4 4 import org.geotools.referencing.CRS; 5 import org. opengis.referencing.FactoryException;6 import org. opengis.referencing.crs.CoordinateReferenceSystem;7 import org. opengis.referencing.operation.MathTransform;5 import org.geotools.api.referencing.FactoryException; 6 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 7 import org.geotools.api.referencing.operation.MathTransform; 8 8 9 9 public class DefaultGmlHandler extends DefaultGeographicHandler implements GmlHandler { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/DefaultMifHandler.java
r36072 r36176 2 2 package org.openstreetmap.josm.plugins.opendata.core.io.geographic; 3 3 4 import org. opengis.referencing.FactoryException;5 import org. opengis.referencing.crs.CoordinateReferenceSystem;6 import org. opengis.referencing.operation.MathTransform;4 import org.geotools.api.referencing.FactoryException; 5 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 6 import org.geotools.api.referencing.operation.MathTransform; 7 7 import org.openstreetmap.josm.data.projection.Projection; 8 8 -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeographicHandler.java
r36072 r36176 2 2 package org.openstreetmap.josm.plugins.opendata.core.io.geographic; 3 3 4 import org. opengis.referencing.FactoryException;5 import org. opengis.referencing.NoSuchAuthorityCodeException;6 import org. opengis.referencing.crs.CoordinateReferenceSystem;7 import org. opengis.referencing.operation.MathTransform;4 import org.geotools.api.referencing.FactoryException; 5 import org.geotools.api.referencing.NoSuchAuthorityCodeException; 6 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 7 import org.geotools.api.referencing.operation.MathTransform; 8 8 9 9 public interface GeographicHandler { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeographicReader.java
r36173 r36176 31 31 import org.locationtech.jts.geom.LineString; 32 32 import org.locationtech.jts.geom.Point; 33 import org. opengis.geometry.MismatchedDimensionException;34 import org. opengis.referencing.FactoryException;35 import org. opengis.referencing.IdentifiedObject;36 import org. opengis.referencing.crs.CoordinateReferenceSystem;37 import org. opengis.referencing.crs.ProjectedCRS;38 import org. opengis.referencing.cs.CoordinateSystem;39 import org. opengis.referencing.datum.Datum;40 import org. opengis.referencing.operation.MathTransform;41 import org. opengis.referencing.operation.OperationNotFoundException;42 import org. opengis.referencing.operation.TransformException;33 import org.geotools.api.geometry.MismatchedDimensionException; 34 import org.geotools.api.referencing.FactoryException; 35 import org.geotools.api.referencing.IdentifiedObject; 36 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 37 import org.geotools.api.referencing.crs.ProjectedCRS; 38 import org.geotools.api.referencing.cs.CoordinateSystem; 39 import org.geotools.api.referencing.datum.Datum; 40 import org.geotools.api.referencing.operation.MathTransform; 41 import org.geotools.api.referencing.operation.OperationNotFoundException; 42 import org.geotools.api.referencing.operation.TransformException; 43 43 import org.openstreetmap.josm.data.coor.ILatLon; 44 44 import org.openstreetmap.josm.data.coor.LatLon; … … 348 348 * @param parent The parent component, used for showing dialogs 349 349 * @param findSimiliarCrs {@code true} if we don't need to find the exact CRS 350 * @throws FactoryException See {@link CRS#findMathTransform}, {@link org. opengis.referencing.AuthorityFactory#getAuthorityCodes}350 * @throws FactoryException See {@link CRS#findMathTransform}, {@link org.geotools.api.referencing.AuthorityFactory#getAuthorityCodes} 351 351 * @throws UserCancelException If the user cancelled in one of the message dialogs 352 352 * @throws GeoMathTransformException If no transform could be found -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeotoolsConverter.java
r36173 r36176 18 18 import javax.swing.JOptionPane; 19 19 20 import org.geotools.data.DataStore; 21 import org.geotools.data.FeatureSource; 20 import org.geotools.api.data.DataStore; 21 import org.geotools.api.data.FeatureSource; 22 22 import org.geotools.feature.FeatureCollection; 23 23 import org.geotools.feature.FeatureIterator; … … 28 28 import org.locationtech.jts.geom.Polygon; 29 29 import org.locationtech.jts.io.ParseException; 30 import org. opengis.feature.Feature;31 import org. opengis.feature.GeometryAttribute;32 import org. opengis.feature.Property;33 import org. opengis.feature.type.GeometryDescriptor;34 import org. opengis.feature.type.Name;35 import org. opengis.geometry.MismatchedDimensionException;36 import org. opengis.referencing.FactoryException;37 import org. opengis.referencing.operation.TransformException;30 import org.geotools.api.feature.Feature; 31 import org.geotools.api.feature.GeometryAttribute; 32 import org.geotools.api.feature.Property; 33 import org.geotools.api.feature.type.GeometryDescriptor; 34 import org.geotools.api.feature.type.Name; 35 import org.geotools.api.geometry.MismatchedDimensionException; 36 import org.geotools.api.referencing.FactoryException; 37 import org.geotools.api.referencing.operation.TransformException; 38 38 import org.openstreetmap.josm.data.osm.DataSet; 39 39 import org.openstreetmap.josm.data.osm.OsmPrimitive; -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GeotoolsHandler.java
r36173 r36176 14 14 import org.geotools.referencing.operation.projection.LambertConformal2SP; 15 15 import org.geotools.referencing.operation.projection.MapProjection.AbstractProvider; 16 import org. opengis.parameter.ParameterDescriptor;17 import org. opengis.parameter.ParameterValueGroup;18 import org. opengis.referencing.FactoryException;19 import org. opengis.referencing.crs.CoordinateReferenceSystem;20 import org. opengis.referencing.datum.GeodeticDatum;21 import org. opengis.referencing.operation.MathTransform;16 import org.geotools.api.parameter.ParameterDescriptor; 17 import org.geotools.api.parameter.ParameterValueGroup; 18 import org.geotools.api.referencing.FactoryException; 19 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 20 import org.geotools.api.referencing.datum.GeodeticDatum; 21 import org.geotools.api.referencing.operation.MathTransform; 22 22 import org.openstreetmap.josm.data.projection.AbstractProjection; 23 23 import org.openstreetmap.josm.data.projection.Ellipsoid; … … 40 40 * A mapping of GeoTools ellipsoid to JOSM ellipsoids. Don't use outside the {@link GeotoolsHandler} class. 41 41 */ 42 List<Pair<org. opengis.referencing.datum.Ellipsoid, Ellipsoid>>42 List<Pair<org.geotools.api.referencing.datum.Ellipsoid, Ellipsoid>> 43 43 ellipsoids = Collections.unmodifiableList(Arrays.asList( 44 44 new Pair<>(DefaultEllipsoid.GRS80, Ellipsoid.GRS80), … … 63 63 AbstractProjection ap = (AbstractProjection) p; 64 64 if (ap.getProj() instanceof LambertConformalConic) { 65 for (Pair<org. opengis.referencing.datum.Ellipsoid, Ellipsoid> pair : ellipsoids) {65 for (Pair<org.geotools.api.referencing.datum.Ellipsoid, Ellipsoid> pair : ellipsoids) { 66 66 if (pair.a.equals(geo.getEllipsoid()) && pair.b.equals(ap.getEllipsoid())) { 67 67 boolean ok = true; -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/GmlReader.java
r36173 r36176 16 16 import org.locationtech.jts.geom.GeometryFactory; 17 17 import org.locationtech.jts.geom.Point; 18 import org. opengis.geometry.MismatchedDimensionException;19 import org. opengis.referencing.FactoryException;20 import org. opengis.referencing.crs.CoordinateReferenceSystem;21 import org. opengis.referencing.operation.MathTransform;22 import org. opengis.referencing.operation.TransformException;18 import org.geotools.api.geometry.MismatchedDimensionException; 19 import org.geotools.api.referencing.FactoryException; 20 import org.geotools.api.referencing.crs.CoordinateReferenceSystem; 21 import org.geotools.api.referencing.operation.MathTransform; 22 import org.geotools.api.referencing.operation.TransformException; 23 23 import org.openstreetmap.josm.data.osm.DataSet; 24 24 import org.openstreetmap.josm.data.osm.Node; -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReader.java
r36173 r36176 21 21 import java.util.Set; 22 22 23 import org.geotools.data.DataStore; 23 import org.geotools.api.data.DataStore; 24 24 import org.geotools.data.shapefile.ShapefileDataStoreFactory; 25 25 import org.locationtech.jts.geom.Point; 26 import org. opengis.geometry.MismatchedDimensionException;27 import org. opengis.referencing.FactoryException;28 import org. opengis.referencing.operation.TransformException;26 import org.geotools.api.geometry.MismatchedDimensionException; 27 import org.geotools.api.referencing.FactoryException; 28 import org.geotools.api.referencing.operation.TransformException; 29 29 import org.openstreetmap.josm.data.osm.DataSet; 30 30 import org.openstreetmap.josm.data.osm.Node; -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/geopackage/GeoPackageReader.java
r36071 r36176 10 10 import java.util.Map; 11 11 12 import org.geotools.data.DataStore; 13 import org.geotools.data.DataStoreFinder; 12 import org.geotools.api.data.DataStore; 13 import org.geotools.api.data.DataStoreFinder; 14 14 import org.geotools.geopkg.GeoPkgDataStoreFactory; 15 import org. opengis.referencing.FactoryException;16 import org. opengis.referencing.operation.TransformException;15 import org.geotools.api.referencing.FactoryException; 16 import org.geotools.api.referencing.operation.TransformException; 17 17 import org.openstreetmap.josm.data.osm.DataSet; 18 18 import org.openstreetmap.josm.gui.progress.ProgressMonitor;
Note:
See TracChangeset
for help on using the changeset viewer.