org.geotools.referencing.operation.transform
Class WarpBuilder

Object
  extended by WarpBuilder

public class WarpBuilder
extends Object

Builds Warp objects that approximate a specified MathTransform in a certain rectangular domain within the specified tolerance

Author:
Andrea Aime - GeoSolutions

Constructor Summary
WarpBuilder(double tolerance)
          Creates a new warp builder
 
Method Summary
 Warp buildWarp(MathTransform2D mt, Rectangle domain)
           
 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarpBuilder

public WarpBuilder(double tolerance)
Creates a new warp builder

Method Detail

setMaxPositions

public 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. By default there is no limit

Parameters:
maxPositions -

buildWarp

public Warp buildWarp(MathTransform2D mt,
                      Rectangle domain)
               throws TransformException
Parameters:
mt - The math transform to be approximated
domain - The domain in which the transform will be approximated
tolerance -
Returns:
Throws:
TransformException


Copyright © 1996-2014 Geotools. All Rights Reserved.