public class SpecifiedResolutionCoverageGriddingTechnique extends Object implements ICoverageGriddingTechnique
Constructor and Description |
---|
SpecifiedResolutionCoverageGriddingTechnique(double resolution)
Initializes the gridding method with the specified resolution, both bounds explicitly included, and the gridding start point set to the lower bounds.
|
SpecifiedResolutionCoverageGriddingTechnique(double resolution,
Double griddingStartPoint,
boolean includeExactBounds)
Initializes the gridding method.
|
SpecifiedResolutionCoverageGriddingTechnique(double resolution,
Double griddingStartPoint,
boolean includeExactLowerBound,
boolean includeExactUpperBound)
Initializes the gridding method.
|
Modifier and Type | Method and Description |
---|---|
List<Double> |
grid(Bounds coordinateBounds,
boolean isCyclic)
Grids the coordinate.
|
public SpecifiedResolutionCoverageGriddingTechnique(double resolution)
resolution
- The spacing in this coordinate.public SpecifiedResolutionCoverageGriddingTechnique(double resolution, @Nullable Double griddingStartPoint, boolean includeExactBounds)
The griddingStartPoint
must lie within the coordinate bounds.
resolution
- The space between points in the coordinate.griddingStartPoint
- The optional starting point for the gridding algorithm. If this is null
then gridding will begin at the lower bound. Gridding proceeds in both directions from this point.includeExactBounds
- A boolean indicating if the exact upper and lower bounds are to be included.ArgumentException
- Thrown if resolution
is not positive.public SpecifiedResolutionCoverageGriddingTechnique(double resolution, @Nullable Double griddingStartPoint, boolean includeExactLowerBound, boolean includeExactUpperBound)
The griddingStartPoint
must lie within the coordinate bounds.
resolution
- The space between points in the coordinate.griddingStartPoint
- The optional starting point for the gridding algorithm. If this is null
then gridding will begin at the lower bound. Gridding proceeds in both directions from this point.includeExactLowerBound
- A boolean indicating if the exact lower bounds is to be included.includeExactUpperBound
- A boolean indicating if the exact upper bounds is to be included.ArgumentException
- Thrown if resolution
is not positive.@Nonnull public final List<Double> grid(@Nonnull Bounds coordinateBounds, boolean isCyclic)
grid
in interface ICoverageGriddingTechnique
coordinateBounds
- The bounds for the coordinate that is to be gridded. These bounds are inclusive.isCyclic
- Indicates if the coordinate is cyclic (i.e. an angle). Winding must be removed before gridding.