Class DatumShiftGridGroup.Region
java.lang.Object
java.awt.geom.RectangularShape
java.awt.geom.Rectangle2D
org.apache.sis.internal.referencing.j2d.IntervalRectangle
org.apache.sis.internal.referencing.provider.DatumShiftGridGroup.Region
- Enclosing class:
- DatumShiftGridGroup<C extends javax.measure.Quantity<C>,
T extends javax.measure.Quantity<T>>
The bounds of a sub-grid, together with the subsampling level compared to the grid having the finest resolution.
All values in this class are integers, but nevertheless stored as
double
for avoiding to cast them every
time DatumShiftGridGroup.interpolateInCell(double, double, double[])
is executed.-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.geom.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
Subsampling compared to the grid having finest resolution.private final double
Subsampling compared to the grid having finest resolution.Fields inherited from class org.apache.sis.internal.referencing.j2d.IntervalRectangle
xmax, xmin, ymax, ymin
Fields inherited from class java.awt.geom.Rectangle2D
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final double
relativeCellSize
(int dim) Returns the subsampling (compared to the grid having finest resolution) in the specified dimension.(package private) final double
x
(double p) Converts a coordinate from the parent grid to this grid.(package private) final double
y
(double p) Methods inherited from class org.apache.sis.internal.referencing.j2d.IntervalRectangle
add, add, contains, contains, contains, containsInclusive, createIntersection, createUnion, distanceSquared, getCenterX, getCenterY, getHeight, getMaxX, getMaxY, getMinX, getMinY, getWidth, getX, getY, intersect, intersects, intersects, isEmpty, outcode, setFrame, setRect, setRect, toString
Methods inherited from class java.awt.geom.Rectangle2D
add, equals, getBounds2D, getPathIterator, getPathIterator, hashCode, intersect, intersectsLine, intersectsLine, outcode, setFrame, union
Methods inherited from class java.awt.geom.RectangularShape
clone, contains, getBounds, getFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
-
Field Details
-
sx
private final double sxSubsampling compared to the grid having finest resolution. -
sy
private final double sySubsampling compared to the grid having finest resolution.
-
-
Constructor Details
-
Region
Region(Tile tile) throws IOException Creates a new instance from the givenTileOrganizer
result.- Throws:
IOException
-
-
Method Details
-
x
final double x(double p) Converts a coordinate from the parent grid to this grid. -
y
final double y(double p) -
relativeCellSize
final double relativeCellSize(int dim) Returns the subsampling (compared to the grid having finest resolution) in the specified dimension.
-