Class TPSInterpolator

  • All Implemented Interfaces:
    ISurfaceInterpolator

    public class TPSInterpolator
    extends Object
    implements ISurfaceInterpolator
    Implementation of TPS Interpolation based on thin plate spline (TPS) algorithm

    TPS developed following: http://elonen.iki.fi/code/tpsdemo/index.html

    The implementation is meant to be threadsafe.

    Note that this implementation works only with metric data.

    Author:
    jezekjan, Andrea Antonello (www.hydrologis.com)
    • Constructor Detail

      • TPSInterpolator

        public TPSInterpolator​(double buffer)
    • Method Detail

      • getValue

        public double getValue​(org.locationtech.jts.geom.Coordinate[] controlPoints,
                               org.locationtech.jts.geom.Coordinate interpolated)
        Description copied from interface: ISurfaceInterpolator
        Gets an interpolated value in a agiven position, from a set of control values.
        Specified by:
        getValue in interface ISurfaceInterpolator
        Parameters:
        controlPoints - all the controlpoints to consider to evaluate the interpolated point.
        interpolated - the coordinate in which to interpolate.
        Returns:
        the interpolated z value.