public enum GeometryType extends Enum<GeometryType>
| Enum Constant and Description |
|---|
GEOMETRY
The root of the geometry type hierarchy
|
GEOMETRYCOLLECTION
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name
|
GeometryType |
getType()
Get the simple features type
|
static 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.
|
public static final GeometryType GEOMETRY
public static final GeometryType POINT
public static final GeometryType LINESTRING
public static final GeometryType POLYGON
public static final GeometryType MULTIPOINT
public static final GeometryType MULTILINESTRING
public static final GeometryType MULTIPOLYGON
public static final GeometryType GEOMETRYCOLLECTION
public static GeometryType[] values()
for (GeometryType c : GeometryType.values()) System.out.println(c);
public static GeometryType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic GeometryType getType()
public String getName()
Copyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.