Package mil.nga.sf.geojson
Enum GeometryType
- java.lang.Object
-
- java.lang.Enum<GeometryType>
-
- mil.nga.sf.geojson.GeometryType
-
- All Implemented Interfaces:
Serializable
,Comparable<GeometryType>
public enum GeometryType extends Enum<GeometryType>
Geometry Type enumeration- Since:
- 3.0.0
- Author:
- osbornb
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GEOMETRY
The root of the geometry type hierarchyGEOMETRYCOLLECTION
A collection of zero or more Geometry instances.LINESTRING
A Curve that connects two or more points in space.MULTILINESTRING
A restricted form of MultiCurve where each Curve in the collection must be of type LineString.MULTIPOINT
A restricted form of GeometryCollection where each Geometry in the collection must be of type Point.MULTIPOLYGON
A restricted form of MultiSurface where each Surface in the collection must be of type Polygon.POINT
A single location in space.POLYGON
A restricted form of CurvePolygon where each ring is defined as a simple, closed LineString.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Get the nameGeometryType
getType()
Get the simple features typestatic GeometryType
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeometryType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- 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
-
-