Enum InfoStatements.GeometryTypeEncoding
java.lang.Object
java.lang.Enum<InfoStatements.GeometryTypeEncoding>
org.apache.sis.internal.sql.feature.InfoStatements.GeometryTypeEncoding
- All Implemented Interfaces:
Serializable
,Comparable<InfoStatements.GeometryTypeEncoding>
,java.lang.constant.Constable
- Enclosing class:
- InfoStatements
protected static enum InfoStatements.GeometryTypeEncoding
extends Enum<InfoStatements.GeometryTypeEncoding>
Specifies how the geometry type is encoded in the
"GEOMETRY_TYPE"
column.
The OGC standard defines numeric values, but PostGIS uses textual values.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) GeometryType
Decodes the geometry type encoded in the specified column of the given result set.Returns the enum constant of this type with the specified name.static InfoStatements.GeometryTypeEncoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NUMERIC
"GEOMETRY_TYPE"
column is expected to contain an integer value. This is the encoding used in OGC standard. -
TEXTUAL
"GEOMETRY_TYPE"
column is expected to contain a textual value. This is the encoding used by PostGIS, but using a different column name ("TYPE"
instead of"GEOMETRY_TYPE"
) for avoiding confusion.
-
-
Constructor Details
-
GeometryTypeEncoding
private GeometryTypeEncoding()
-
-
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
-
parse
Decodes the geometry type encoded in the specified column of the given result set. If there is no type information, then this method returnsnull
.- Throws:
SQLException
-