org.deegree.feature.types.property
Enum GeometryPropertyType.GeometryType

java.lang.Object
  extended by java.lang.Enum<GeometryPropertyType.GeometryType>
      extended by org.deegree.feature.types.property.GeometryPropertyType.GeometryType
All Implemented Interfaces:
Serializable, Comparable<GeometryPropertyType.GeometryType>
Enclosing class:
GeometryPropertyType

public static enum GeometryPropertyType.GeometryType
extends Enum<GeometryPropertyType.GeometryType>

The flattened geometry hierarchy supported by deegree's ISO geometry model.


Enum Constant Summary
COMPOSITE
          A composite geometry.
COMPOSITE_CURVE
          A composite geometry.
COMPOSITE_SOLID
          A composite geometry.
COMPOSITE_SURFACE
          A composite geometry.
CURVE
          A composite geometry.
GEOMETRY
          Any kind of geometry (primitive, composite or aggregate).
LINE_STRING
          A composite geometry.
LINEAR_RING
          A composite geometry.
MULTI_CURVE
          A composite geometry.
MULTI_GEOMETRY
          A composite geometry.
MULTI_LINE_STRING
          A composite geometry.
MULTI_POINT
          A composite geometry.
MULTI_POLYGON
          A composite geometry.
MULTI_SOLID
          A composite geometry.
MULTI_SURFACE
          A composite geometry.
ORIENTABLE_CURVE
          A composite geometry.
ORIENTABLE_SURFACE
          A composite geometry.
POINT
          A composite geometry.
POLYGON
          A composite geometry.
POLYHEDRAL_SURFACE
          A composite geometry.
PRIMITIVE
          A primitive geometry.
RING
          A composite geometry.
SOLID
          A composite geometry.
SURFACE
          A composite geometry.
TIN
          A composite geometry.
TRIANGULATED_SURFACE
          A composite geometry.
 
Method Summary
static GeometryPropertyType.GeometryType determineMinimalBaseGeometry(Set<GeometryPropertyType.GeometryType> allowedTypes)
           
 GeometryPropertyType.GeometryType findCommonBaseType(GeometryPropertyType.GeometryType other)
          Find the common base type of this geometry type and another geometry type
static GeometryPropertyType.GeometryType fromGMLTypeName(String geomString)
          Get the geometry type from the given string, if the type could not be mapped, a GEOMETRY will be returned.
 Class<? extends Geometry> getJavaType()
           
 boolean isCompatible(Geometry geometry)
           
static GeometryPropertyType.GeometryType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GeometryPropertyType.GeometryType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GEOMETRY

public static final GeometryPropertyType.GeometryType GEOMETRY
Any kind of geometry (primitive, composite or aggregate).


PRIMITIVE

public static final GeometryPropertyType.GeometryType PRIMITIVE
A primitive geometry.


COMPOSITE

public static final GeometryPropertyType.GeometryType COMPOSITE
A composite geometry.


POINT

public static final GeometryPropertyType.GeometryType POINT
A composite geometry.


CURVE

public static final GeometryPropertyType.GeometryType CURVE
A composite geometry.


LINE_STRING

public static final GeometryPropertyType.GeometryType LINE_STRING
A composite geometry.


RING

public static final GeometryPropertyType.GeometryType RING
A composite geometry.


LINEAR_RING

public static final GeometryPropertyType.GeometryType LINEAR_RING
A composite geometry.


ORIENTABLE_CURVE

public static final GeometryPropertyType.GeometryType ORIENTABLE_CURVE
A composite geometry.


COMPOSITE_CURVE

public static final GeometryPropertyType.GeometryType COMPOSITE_CURVE
A composite geometry.


SURFACE

public static final GeometryPropertyType.GeometryType SURFACE
A composite geometry.


POLYHEDRAL_SURFACE

public static final GeometryPropertyType.GeometryType POLYHEDRAL_SURFACE
A composite geometry.


TRIANGULATED_SURFACE

public static final GeometryPropertyType.GeometryType TRIANGULATED_SURFACE
A composite geometry.


TIN

public static final GeometryPropertyType.GeometryType TIN
A composite geometry.


POLYGON

public static final GeometryPropertyType.GeometryType POLYGON
A composite geometry.


ORIENTABLE_SURFACE

public static final GeometryPropertyType.GeometryType ORIENTABLE_SURFACE
A composite geometry.


COMPOSITE_SURFACE

public static final GeometryPropertyType.GeometryType COMPOSITE_SURFACE
A composite geometry.


SOLID

public static final GeometryPropertyType.GeometryType SOLID
A composite geometry.


COMPOSITE_SOLID

public static final GeometryPropertyType.GeometryType COMPOSITE_SOLID
A composite geometry.


MULTI_GEOMETRY

public static final GeometryPropertyType.GeometryType MULTI_GEOMETRY
A composite geometry.


MULTI_POINT

public static final GeometryPropertyType.GeometryType MULTI_POINT
A composite geometry.


MULTI_CURVE

public static final GeometryPropertyType.GeometryType MULTI_CURVE
A composite geometry.


MULTI_LINE_STRING

public static final GeometryPropertyType.GeometryType MULTI_LINE_STRING
A composite geometry.


MULTI_SURFACE

public static final GeometryPropertyType.GeometryType MULTI_SURFACE
A composite geometry.


MULTI_POLYGON

public static final GeometryPropertyType.GeometryType MULTI_POLYGON
A composite geometry.


MULTI_SOLID

public static final GeometryPropertyType.GeometryType MULTI_SOLID
A composite geometry.

Method Detail

values

public static GeometryPropertyType.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 (GeometryPropertyType.GeometryType c : GeometryPropertyType.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 GeometryPropertyType.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

getJavaType

public Class<? extends Geometry> getJavaType()
Returns:
the awaited Geometry type for this geometry.

findCommonBaseType

public GeometryPropertyType.GeometryType findCommonBaseType(GeometryPropertyType.GeometryType other)
Find the common base type of this geometry type and another geometry type

Parameters:
other - to get the base type for.
Returns:
the common base

fromGMLTypeName

public static GeometryPropertyType.GeometryType fromGMLTypeName(String geomString)
Get the geometry type from the given string, if the type could not be mapped, a GEOMETRY will be returned.

Parameters:
geomString - to get the type for
Returns:
the geometry type.

determineMinimalBaseGeometry

public static GeometryPropertyType.GeometryType determineMinimalBaseGeometry(Set<GeometryPropertyType.GeometryType> allowedTypes)
Parameters:
allowedTypes -

isCompatible

public boolean isCompatible(Geometry geometry)


Copyright © 2011. All Rights Reserved.