Interface ValueTriangle

  • All Superinterfaces:
    ValueObject

    @UML(identifier="CV_ValueTriangle",
         specification=ISO_19123)
    public interface ValueTriangle
    extends ValueObject
    A value object that consists of three point-value pairs where the points are non-collinear. Value triangles are used for interpolation of a coverage.
    Since:
    GeoAPI 2.1
    • Method Detail

      • getGeometry

        @UML(identifier="geometry",
             obligation=MANDATORY,
             specification=ISO_19123)
        DomainObject<?> getGeometry()
        Returns the triangle that defines the relative position of the three point-value pairs at its vertices.
        Specified by:
        getGeometry in interface ValueObject
        Returns:
        the geometry as a triangle.
        TODO:
        The returns type in ISO-19123 is Triangle.
      • getControlValues

        @UML(identifier="controlValue",
             obligation=MANDATORY,
             specification=ISO_19123)
        Set<PointValuePair> getControlValues()
        Returns the three point-value pairs at the vertices of this value triangle.
        Specified by:
        getControlValues in interface ValueObject
        Returns:
        the control values.
      • point

        @UML(identifier="point",
             obligation=MANDATORY,
             specification=ISO_19123)
        double[] point​(DirectPosition p)
        Returns the barycentric coordinates of the specified position as a sequence of numbers.
        Parameters:
        p - The position where to calculate.
        Returns:
        the barycentric coordinates.