public class WarpBuilder extends Object
Warp
objects that approximate a specified MathTransform
in a certain
rectangular domain within the specified toleranceConstructor and Description |
---|
WarpBuilder(double tolerance)
Creates a new warp builder
|
Modifier and Type | Method and Description |
---|---|
Warp |
buildWarp(MathTransform2D mt,
Rectangle domain) |
int[] |
getRowColsSplit(MathTransform2D mt,
Rectangle2D.Double domain)
Given a math transform and a source domain, return the number of rows and cols by which the
domain should be split to avoid transform linearity issues, or null if it could not be found.
|
boolean |
isValidDomain(Rectangle2D.Double domain)
Returns true if the given domain is valid for the splitting algorithm.
|
void |
setMaxPositions(int maxPositions)
Sets the maximum number of positions in the optimized grid, in case we have more we'll fall
back to the warp adapter.
|
public void setMaxPositions(int maxPositions)
public boolean isValidDomain(Rectangle2D.Double domain)
buildWarp(MathTransform2D, Rectangle)
the domain here can be expressed in geographic coordinates, so there is no requirement that
the area is at least 1x1 (in geographic coordiantes, that's a massive area), but only that
it's not emptydomain
- domain to checkpublic int[] getRowColsSplit(MathTransform2D mt, Rectangle2D.Double domain)
public Warp buildWarp(MathTransform2D mt, Rectangle domain) throws TransformException
mt
- The math transform to be approximateddomain
- The domain in which the transform will be approximatedTransformException
Copyright © 1996–2022 Geotools. All rights reserved.