Skip to content

Commit

Permalink
[GEOT-7287] GeoTools API Change refactoring org.opengis to org.geotoo…
Browse files Browse the repository at this point in the history
…ls.api

See #1151
  • Loading branch information
jodygarnett committed Sep 6, 2023
1 parent 4c28db4 commit 204d6b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
import java.awt.image.BufferedImage;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.geotools.api.geometry.MismatchedDimensionException;
import org.geotools.api.referencing.datum.PixelInCell;
import org.geotools.api.referencing.operation.MathTransform;
import org.geotools.api.referencing.operation.NoninvertibleTransformException;
import org.geotools.api.referencing.operation.TransformException;
import org.geotools.coverage.grid.GridEnvelope2D;
import org.geotools.geometry.Envelope2D;
import org.geotools.geometry.jts.JTS;
import org.geotools.geometry.jts.LiteShape;
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geotools.referencing.operation.builder.GridToEnvelopeMapper;
import org.geotools.util.logging.Logging;
import org.geowebcache.grid.BoundingBox;
import org.geowebcache.grid.GridSubset;
import org.locationtech.jts.geom.Envelope;
import org.locationtech.jts.geom.Geometry;
import org.opengis.geometry.MismatchedDimensionException;
import org.opengis.referencing.datum.PixelInCell;
import org.opengis.referencing.operation.MathTransform;
import org.opengis.referencing.operation.NoninvertibleTransformException;
import org.opengis.referencing.operation.TransformException;

/**
* An object that builds a mask of tiles affected by geometries
Expand Down Expand Up @@ -222,7 +222,7 @@ private MathTransform getWorldToGridTransform(
// Convert the JTS envelope and get the transform
//
// //
final Envelope2D genvelope = new Envelope2D();
final ReferencedEnvelope genvelope = new ReferencedEnvelope();
{
// genvelope.setCoordinateReferenceSystem(layerCrs);
double x = coverageBounds.getMinX();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.geotools.api.geometry.Bounds;
import org.geotools.api.referencing.FactoryException;
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;
import org.geotools.api.referencing.operation.TransformException;
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geotools.mbtiles.MBTilesFile;
import org.geotools.mbtiles.MBTilesMetadata;
Expand All @@ -32,10 +36,6 @@
import org.geowebcache.grid.BoundingBox;
import org.geowebcache.layer.meta.TileJSON;
import org.geowebcache.layer.meta.VectorLayerMetadata;
import org.opengis.geometry.Envelope;
import org.opengis.referencing.FactoryException;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.opengis.referencing.operation.TransformException;

/** Info Object storing basic MBTiles Cached info */
public class MBTilesInfo {
Expand Down Expand Up @@ -96,7 +96,7 @@ public MBTilesInfo(MBTilesFile file) throws IOException {
minZoom = metadata.getMinZoom();
maxZoom = metadata.getMaxZoom();

Envelope env = metadata.getBounds();
Bounds env = metadata.getBounds();
ReferencedEnvelope envelope = null;
if (env != null) {
try {
Expand All @@ -122,7 +122,7 @@ public MBTilesInfo(MBTilesFile file) throws IOException {
bounds = getBBoxFromEnvelope(envelope);
}

private BoundingBox getBBoxFromEnvelope(Envelope envelope) {
private BoundingBox getBBoxFromEnvelope(Bounds envelope) {
BoundingBox bbox = null;
if (envelope != null) {
bbox =
Expand Down

0 comments on commit 204d6b7

Please sign in to comment.