Package org.opengis.metadata.acquisition
Class GeometryType
- All Implemented Interfaces:
Serializable
,Comparable<GeometryType>
@UML(identifier="MI_GeometryTypeCode",
specification=ISO_19115_2)
public final class GeometryType
extends CodeList<GeometryType>
Geometric description of the collection.
- Since:
- 2.3
- Version:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opengis.util.CodeList
CodeList.Filter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeometryType
Collection of a geographic area defined by a polygon (coverage).static final GeometryType
Extended collection in a single vector.static final GeometryType
Single geographic point of interest.private static final long
Serial number for compatibility with different versions.static final GeometryType
Series of linear collections grouped by way points.private static final List
<GeometryType> List of all enumerations of this type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GeometryType
(String name) Constructs an enum with the given name. -
Method Summary
Modifier and TypeMethodDescriptionfamily()
Returns the list of enumerations of the same kind than this enum.static GeometryType
Returns the geometry type that matches the given string, or returns a new one if none match it.static GeometryType[]
values()
Returns the list ofGeometryType
s.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for compatibility with different versions.- See Also:
-
VALUES
List of all enumerations of this type. Must be declared before any enum declaration. -
POINT
@UML(identifier="point", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType POINTSingle geographic point of interest. -
LINEAR
@UML(identifier="linear", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType LINEARExtended collection in a single vector. -
AREAL
@UML(identifier="areal", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType AREALCollection of a geographic area defined by a polygon (coverage). -
STRIP
@UML(identifier="strip", obligation=CONDITIONAL, specification=ISO_19115_2) public static final GeometryType STRIPSeries of linear collections grouped by way points.
-
-
Constructor Details
-
GeometryType
Constructs an enum with the given name. The new enum is automatically added to the list returned byvalues()
.- Parameters:
name
- The enum name. This name must not be in use by an other enum of this type.
-
-
Method Details
-
values
Returns the list ofGeometryType
s.- Returns:
- The list of codes declared in the current JVM.
-
family
Returns the list of enumerations of the same kind than this enum.- Specified by:
family
in classCodeList<GeometryType>
- Returns:
- The codes of the same kind than this code.
-
valueOf
Returns the geometry type that matches the given string, or returns a new one if none match it.- Parameters:
code
- The name of the code to fetch or to create.- Returns:
- A code matching the given name.
-