Ignore:
Timestamp:
2019-09-26T13:14:00+02:00 (5 years ago)
Author:
donvip
Message:

see #josm17933 - see #josm17976 - upgrade to GeoTools 22.0

Location:
applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/GeoFabrikWFSClient.java

    r34143 r35123  
    1212import org.geotools.data.FeatureSource;
    1313import org.geotools.factory.CommonFactoryFinder;
    14 import org.geotools.factory.GeoTools;
    1514import org.geotools.feature.FeatureCollection;
    1615import org.geotools.geometry.jts.ReferencedEnvelope;
     
    8079                // Ask WFS service for typeName data constrained by bboxRef
    8180                //
    82                 FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(GeoTools
    83                                 .getDefaultHints());
     81                FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
    8482                Filter filterBB = ff.bbox(ff.property(geomName), bboxRef);
    8583                FeatureCollection<SimpleFeatureType, SimpleFeature> features = source
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/ImportOsmInspectorBugsAction.java

    r33793 r35123  
    1919import org.openstreetmap.josm.tools.Shortcut;
    2020
    21 import com.vividsolutions.jts.io.ParseException;
     21import org.locationtech.jts.io.ParseException;
    2222
    2323public class ImportOsmInspectorBugsAction extends JosmAction {
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/OsmInspectorLayer.java

    r34538 r35123  
    6060import org.openstreetmap.josm.tools.Logging;
    6161
    62 import com.vividsolutions.jts.geom.Envelope;
    63 import com.vividsolutions.jts.geom.Geometry;
    64 import com.vividsolutions.jts.io.ParseException;
     62import org.locationtech.jts.geom.Envelope;
     63import org.locationtech.jts.geom.Geometry;
     64import org.locationtech.jts.io.ParseException;
    6565
    6666public class OsmInspectorLayer extends Layer {
  • applications/editors/josm/plugins/OsmInspectorPlugin/src/org/openstreetmap/josm/plugins/osminspector/gui/OsmInspectorDialog.java

    r33793 r35123  
    3232import org.openstreetmap.josm.tools.Shortcut;
    3333
    34 import com.vividsolutions.jts.geom.Geometry;
    35 import com.vividsolutions.jts.geom.Point;
     34import org.locationtech.jts.geom.Geometry;
     35import org.locationtech.jts.geom.Point;
    3636
    3737public class OsmInspectorDialog extends ToggleDialog implements LayerChangeListener, ActiveLayerChangeListener {
     
    233233        @Override
    234234        public void layerAdded(LayerAddEvent e) {
    235                 if (layer instanceof OsmInspectorLayer) {
     235                if (layer != null) {
    236236                        refreshModel();
    237237                        refreshBugList();
     
    241241        @Override
    242242        public void layerRemoving(LayerRemoveEvent e) {
    243                 if (layer instanceof OsmInspectorLayer) {
     243                if (layer != null) {
    244244                        bugsList.clearSelection();
    245245                        model.clear();
Note: See TracChangeset for help on using the changeset viewer.