Enum GeometryType

java.lang.Object
java.lang.Enum<GeometryType>
cn.mapway.geo.geometry.GeometryType
All Implemented Interfaces:
Serializable, Comparable<GeometryType>, java.lang.constant.Constable

public enum GeometryType extends Enum<GeometryType>
* enum wkbGeometryType { * wkbPoint = 1, * wkbLineString = 2, * wkbPolygon = 3, * wkbMultiPoint = 4, * wkbMultiLineString = 5, * wkbMultiPolygon = 6, * wkbGeometryCollection = 7 * }; 参见 https://libgeos.org/specifications/wkb/
  • Enum Constant Details

    • GT_UNKNOWN

      public static final GeometryType GT_UNKNOWN
    • GT_POINT

      public static final GeometryType GT_POINT
    • GT_LINE

      public static final GeometryType GT_LINE
    • GT_POLYGON

      public static final GeometryType GT_POLYGON
    • GT_MULTI_POINT

      public static final GeometryType GT_MULTI_POINT
    • GT_MULTI_LINE

      public static final GeometryType GT_MULTI_LINE
    • GT_MULTI_POLYGON

      public static final GeometryType GT_MULTI_POLYGON
    • GT_GEOMETRY_COLLECTION

      public static final GeometryType GT_GEOMETRY_COLLECTION
  • Method Details

    • values

      public static GeometryType[] 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 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
    • getName

      public String getName()
    • getUnicode

      public String getUnicode()
    • getPostGisType

      public String getPostGisType()
    • valueOfCode

      public static GeometryType valueOfCode(Integer code)
    • getCode

      public int getCode()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GeometryType>