Skip to content

Commit

Permalink
up to gt 30. (ant -f remove-opengis.xml -Dproject.dir=/home/.../sourc…
Browse files Browse the repository at this point in the history
…es/war-overlay/iso19139.che)
  • Loading branch information
cmangeat committed Nov 6, 2024
1 parent 603fc51 commit d8cb7ad
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
import org.locationtech.jts.geom.*;
import org.locationtech.jts.geom.impl.CoordinateArraySequence;
import org.locationtech.jts.io.WKTWriter;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.geometry.BoundingBox;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.opengis.referencing.operation.MathTransform;
import org.geotools.api.feature.simple.SimpleFeature;
import org.geotools.api.geometry.BoundingBox;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.operation.MathTransform;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import org.fao.geonet.constants.Geonet;
import org.fao.geonet.domain.Pair;
import org.fao.geonet.utils.Xml;
import org.geotools.data.FeatureStore;
import org.geotools.data.Query;
import org.geotools.api.data.FeatureStore;
import org.geotools.api.data.Query;
import org.geotools.factory.CommonFactoryFinder;
import org.geotools.feature.FeatureIterator;
import org.geotools.filter.SortByImpl;
Expand All @@ -19,16 +19,16 @@
import org.jdom.Element;
import org.jdom.Text;
import org.locationtech.jts.geom.*;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.filter.FilterFactory2;
import org.opengis.filter.sort.SortBy;
import org.opengis.filter.sort.SortOrder;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.NoSuchAuthorityCodeException;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.opengis.referencing.operation.MathTransform;
import org.opengis.referencing.operation.TransformException;
import org.geotools.api.feature.simple.SimpleFeature;
import org.geotools.api.feature.simple.SimpleFeatureType;
import org.geotools.api.filter.FilterFactory;
import org.geotools.api.filter.sort.SortBy;
import org.geotools.api.filter.sort.SortOrder;
import org.geotools.api.referencing.FactoryException;
import org.geotools.api.referencing.NoSuchAuthorityCodeException;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.operation.MathTransform;
import org.geotools.api.referencing.operation.TransformException;

import java.io.IOException;
import java.io.StringReader;
Expand Down Expand Up @@ -148,7 +148,7 @@ public static String findNextId(FeatureStore<SimpleFeatureType, SimpleFeature> s
throws IOException
{
final Query query = featureType.createQuery(new String[] { featureType.idColumn });
final FilterFactory2 filterFactory = CommonFactoryFinder.getFilterFactory2(GeoTools.getDefaultHints());
final FilterFactory filterFactory = CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());
final SortBy[] sortBy = { new SortByImpl(filterFactory.property(featureType.idColumn), SortOrder.ASCENDING) };
query.setSortBy(sortBy);
final FeatureIterator<SimpleFeature> features = store.getFeatures(query).features();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.fao.geonet.kernel.extent;

import org.fao.geonet.utils.Log;
import org.geotools.data.DataStore;
import org.geotools.data.FeatureStore;
import org.geotools.api.data.DataStore;
import org.geotools.api.data.FeatureStore;
import org.geotools.feature.DefaultFeatureCollection;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.util.logging.Logging;
import org.jdom.Namespace;
import org.locationtech.jts.geom.Geometry;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
import org.geotools.api.feature.simple.SimpleFeature;
import org.geotools.api.feature.simple.SimpleFeatureType;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package org.fao.geonet.kernel.extent;

import org.geotools.data.DataStore;
import org.geotools.data.FeatureSource;
import org.geotools.data.Query;
import org.geotools.api.data.DataStore;
import org.geotools.api.data.FeatureSource;
import org.geotools.api.data.Query;
import org.geotools.factory.CommonFactoryFinder;
import org.geotools.referencing.CRS;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.geotools.util.factory.GeoTools;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.feature.simple.SimpleFeatureType;
import org.opengis.filter.Filter;
import org.opengis.filter.FilterFactory2;
import org.opengis.filter.expression.Literal;
import org.opengis.filter.expression.PropertyName;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.feature.simple.SimpleFeature;
import org.geotools.api.feature.simple.SimpleFeatureType;
import org.geotools.api.filter.Filter;
import org.geotools.api.filter.FilterFactory;
import org.geotools.api.filter.expression.Literal;
import org.geotools.api.filter.expression.PropertyName;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;

import javax.annotation.PostConstruct;
import java.io.IOException;
Expand Down Expand Up @@ -108,7 +108,7 @@ public Query createQuery(String[] properties) {
}
public Filter createFilter(String id)
{
final FilterFactory2 factory = CommonFactoryFinder.getFilterFactory2(GeoTools.getDefaultHints());
final FilterFactory factory = CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());
final Literal literal = factory.literal(id);
final PropertyName property = factory.property(idColumn);
final Filter filter = factory.equals(property, literal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

package org.fao.geonet.kernel.extent;

import org.geotools.data.DataStore;
import org.geotools.api.data.DataStore;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.PostConstruct;
Expand Down

0 comments on commit d8cb7ad

Please sign in to comment.