public class RubberSheetBuilder extends MathTransformBuilder
An explanation of the RubberSheet transformation algorithm can be seen here.
mtFactory
Constructor and Description |
---|
RubberSheetBuilder(List<MappedPosition> vectors,
List<DirectPosition> vertices)
Creates the Builder from a List of control points and a List of four DirectPositions defining
the vertexes of the area for interpolation.
|
Modifier and Type | Method and Description |
---|---|
protected MathTransform |
computeMathTransform()
Returns MathTransform transformation setup as RubberSheet.
|
Map<TINTriangle,Object> |
getMapTriangulation()
Returns the map of source and destination triangles.
|
int |
getMinimumPointCount()
Returns the minimum number of points required by this builder.
|
getCoordinateSystemType, getDimension, getErrorStatistics, getMappedPositions, getMathTransform, getName, getSourceCRS, getSourcePoints, getTargetCRS, getTargetPoints, getTransformation, printPoints, setMappedPositions, setSourcePoints, setTargetPoints, toString
public RubberSheetBuilder(List<MappedPosition> vectors, List<DirectPosition> vertices) throws IllegalArgumentException, MismatchedDimensionException, MismatchedReferenceSystemException, TriangulationException
vectors
- A List of MappedPositionvertices
- A List with four points defining the quadrilateral in the region of interest.IllegalArgumentException
MismatchedDimensionException
MismatchedReferenceSystemException
TriangulationException
public int getMinimumPointCount()
getMinimumPointCount
in class MathTransformBuilder
public Map<TINTriangle,Object> getMapTriangulation()
protected MathTransform computeMathTransform() throws FactoryException
computeMathTransform
in class MathTransformBuilder
FactoryException
- when the size of source and destination point is not the same.Copyright © 1996–2022 Geotools. All rights reserved.