Interface CoordinateContainer<T>

  • Type Parameters:
    T - a generic allowing varying dimensions for each GeoJson geometry
    All Superinterfaces:
    GeoJson, Geometry, java.io.Serializable
    All Known Implementing Classes:
    LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon

    public interface CoordinateContainer<T>
    extends Geometry
    Each of the s geometries which make up GeoJson implement this interface and consume a varying dimension of Point list. Since this is varying, each geometry object fulfills the contract by replacing the generic with a well defined list of Points.
    Since:
    3.0.0
    • Method Detail

      • coordinates

        T coordinates()
        the coordinates which define the geometry. Typically a list of points but for some geometry such as polygon this can be a list of a list of points, thus the return is generic here.
        Returns:
        the Points which make up the coordinates defining the geometry
        Since:
        3.0.0