Package org.apache.calcite.runtime
Enum SpatialTypeUtils.SpatialType
java.lang.Object
java.lang.Enum<SpatialTypeUtils.SpatialType>
org.apache.calcite.runtime.SpatialTypeUtils.SpatialType
- All Implemented Interfaces:
Serializable
,Comparable<SpatialTypeUtils.SpatialType>
,Constable
- Enclosing class:
SpatialTypeUtils
Geometry types, with the names and codes assigned by OGC.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
code()
static SpatialTypeUtils.SpatialType
fromGeometry
(org.locationtech.jts.geom.Geometry g) Returns the OGC type of a geometry.static SpatialTypeUtils.SpatialType
Returns the enum constant of this type with the specified name.static SpatialTypeUtils.SpatialType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GEOMETRY
-
POINT
-
LINESTRING
-
POLYGON
-
MULTIPOINT
-
MULTILINESTRING
-
MULTIPOLYGON
-
GEOMETRYCOLLECTION
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
code
public int code() -
fromGeometry
Returns the OGC type of a geometry.
-