Package mil.nga.sf

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.
      • CIRCULARSTRING

        public static final GeometryType CIRCULARSTRING
        Circular String, Curve sub type
      • COMPOUNDCURVE

        public static final GeometryType COMPOUNDCURVE
        Compound Curve, Curve sub type
      • CURVEPOLYGON

        public static final GeometryType CURVEPOLYGON
        A planar surface defined by an exterior ring and zero or more interior ring. Each ring is defined by a Curve instance.
      • MULTICURVE

        public static final GeometryType MULTICURVE
        A restricted form of GeometryCollection where each Geometry in the collection must be of type Curve.
      • MULTISURFACE

        public static final GeometryType MULTISURFACE
        A restricted form of GeometryCollection where each Geometry in the collection must be of type Surface.
      • CURVE

        public static final GeometryType CURVE
        The base type for all 1-dimensional geometry types. A 1-dimensional geometry is a geometry that has a length, but no area. A curve is considered simple if it does not intersect itself (except at the start and end point). A curve is considered closed its start and end point are coincident. A simple, closed curve is called a ring.
      • SURFACE

        public static final GeometryType SURFACE
        The base type for all 2-dimensional geometry types. A 2-dimensional geometry is a geometry that has an area.
      • POLYHEDRALSURFACE

        public static final GeometryType POLYHEDRALSURFACE
        Contiguous collection of polygons which share common boundary segments.
      • TIN

        public static final GeometryType TIN
        A tetrahedron (4 triangular faces), corner at the origin and each unit coordinate digit.
      • TRIANGLE

        public static final GeometryType TRIANGLE
        Triangle
    • 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
      • getName

        public String getName()
        Get the name, just use the enum name since they are the same
        Returns:
        geometry type name
      • fromName

        public static GeometryType fromName​(String name)
        Get the Geometry Type from the name, ignoring case
        Parameters:
        name - geometry type name
        Returns:
        geometry type
      • findName

        public static GeometryType findName​(String name)
        Find the Geometry Type from the name if it exists, ignoring case
        Parameters:
        name - name
        Returns:
        geometry type or null
        Since:
        2.0.2