Enum GeometryType

    • Enum Constant Detail

      • GEOMETRY

        public static final GeometryType GEOMETRY
        The root of the geometry type hierarchy
      • POINT

        public static final GeometryType POINT
        A single location in space. Each point has an X and Y coordinate. A point MAY optionally also have a Z and/or an M value.
      • LINESTRING

        public static final GeometryType LINESTRING
        A Curve that connects two or more points in space.
      • POLYGON

        public static final GeometryType POLYGON
        A restricted form of CurvePolygon where each ring is defined as a simple, closed LineString.
      • MULTIPOINT

        public static final GeometryType MULTIPOINT
        A restricted form of GeometryCollection where each Geometry in the collection must be of type Point.
      • MULTILINESTRING

        public static final GeometryType MULTILINESTRING
        A restricted form of MultiCurve where each Curve in the collection must be of type LineString.
      • MULTIPOLYGON

        public static final GeometryType MULTIPOLYGON
        A restricted form of MultiSurface where each Surface in the collection must be of type Polygon.
      • GEOMETRYCOLLECTION

        public static final GeometryType GEOMETRYCOLLECTION
        A collection of zero or more Geometry instances.
    • Method Detail

      • values

        public static GeometryType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GeometryType c : GeometryType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GeometryType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getType

        public GeometryType getType()
        Get the simple features type
        Returns:
        simple features type
      • getName

        public String getName()
        Get the name
        Returns:
        name