001    /*
002     *    GeoAPI - Java interfaces for OGC/ISO standards
003     *    http://www.geoapi.org
004     *
005     *    Copyright (C) 2005-2012 Open Geospatial Consortium, Inc.
006     *    All Rights Reserved. http://www.opengeospatial.org/ogc/legal
007     *
008     *    Permission to use, copy, and modify this software and its documentation, with
009     *    or without modification, for any purpose and without fee or royalty is hereby
010     *    granted, provided that you include the following on ALL copies of the software
011     *    and documentation or portions thereof, including modifications, that you make:
012     *
013     *    1. The full text of this NOTICE in a location viewable to users of the
014     *       redistributed or derivative work.
015     *    2. Notice of any changes or modifications to the OGC files, including the
016     *       date changes were made.
017     *
018     *    THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE
019     *    NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
020     *    TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT
021     *    THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY
022     *    PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
023     *
024     *    COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
025     *    CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
026     *
027     *    The name and trademarks of copyright holders may NOT be used in advertising or
028     *    publicity pertaining to the software without specific, written prior permission.
029     *    Title to copyright in this software and any associated documentation will at all
030     *    times remain with copyright holders.
031     */
032    package org.opengis.geometry.coordinate;
033    
034    import java.util.List;
035    import java.util.Set;
036    import org.opengis.annotation.UML;
037    
038    import static org.opengis.annotation.Obligation.*;
039    import static org.opengis.annotation.Specification.*;
040    
041    
042    /**
043     * A triangulated surface that uses the Delaunay algorithm or a similar algorithm complemented
044     * with consideration for breaklines, stoplines and maximum length of triangle sides. These
045     * networks satisfy the Delaunay criterion away from the modifications: For each triangle in
046     * the network, the circle passing through its vertexes does not contain, in its interior, the
047     * vertex of any other triangle.
048     *
049     * @version <A HREF="http://www.opengeospatial.org/standards/as">ISO 19107</A>
050     * @author Martin Desruisseaux (IRD)
051     * @since GeoAPI 2.0
052     *
053     * @see GeometryFactory#createTin
054     */
055    @UML(identifier="GM_Tin", specification=ISO_19107)
056    public interface Tin extends TriangulatedSurface {
057        /**
058         * Stoplines are lines where the local continuity or regularity of the surface is questionable.
059         * In the area of these pathologies, triangles intersecting a stopline shall be removed from
060         * the TIN surface, leaving holes in the surface. If coincidence occurs on surface boundary
061         * triangles, the result shall be a change of the surface boundary. The attribute
062         * {@code stopLines} contains all these pathological segments as a set of line strings.
063         */
064        @UML(identifier="stopLines", obligation=MANDATORY, specification=ISO_19107)
065        Set<LineString> getStopLines();
066    
067        /**
068         * Breaklines are lines of a critical nature to the shape of the surface, representing local
069         * ridges, or depressions (such as drainage lines) in the surface. As such their constituent
070         * segments must be included in the TIN even if doing so violates the Delaunay criterion. The
071         * attribute {@code breakLines} contains these critical segments as a set of line strings.
072         */
073        @UML(identifier="breakLines", obligation=MANDATORY, specification=ISO_19107)
074        Set<LineString> getBreakLines();
075    
076        /**
077         * Maximal length for retention.
078         * Areas of the surface where the data is not sufficiently dense to assure reasonable
079         * calculations shall be removed by adding a retention criterion for triangles based
080         * on the length of their sides. For any triangle sides exceeding maximum length, the
081         * adjacent triangles to that triangle side shall be removed from the surface.
082         */
083        @UML(identifier="maxLength", obligation=MANDATORY, specification=ISO_19107)
084        double getMaxLength();
085    
086        /**
087         * The corners of the triangles in the TIN are often referred to as posts. The attribute
088         * {@code controlPoint} shall contain a set of the {@linkplain Position positions} used
089         * as posts for this TIN. Since each TIN contains triangles, there must be at least 3 posts.
090         * The order in which these points are given does not affect the surface that is represented.
091         * Application schemas may add information based on the ordering of the control points to
092         * facilitate the reconstruction of the TIN from the control points.
093         */
094        @UML(identifier="controlPoint", obligation=MANDATORY, specification=ISO_19107)
095        List<Position> getControlPoints();
096    }