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.
See Also:
  • Enum Constant Details

    • NUMERIC

      public static final InfoStatements.GeometryTypeEncoding NUMERIC
      "GEOMETRY_TYPE" column is expected to contain an integer value. This is the encoding used in OGC standard.
    • TEXTUAL

      public static final InfoStatements.GeometryTypeEncoding 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

      public static InfoStatements.GeometryTypeEncoding[] 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

      public static InfoStatements.GeometryTypeEncoding 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
    • parse

      GeometryType parse(ResultSet result, int columnIndex) throws SQLException
      Decodes the geometry type encoded in the specified column of the given result set. If there is no type information, then this method returns null.
      Throws:
      SQLException