java.lang.Object
java.lang.Enum<ShapeType>
org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShapeType
All Implemented Interfaces:
Serializable, Comparable<ShapeType>, java.lang.constant.Constable

public enum ShapeType extends Enum<ShapeType> implements Serializable
  • Enum Constant Details

    • NULL

      public static final ShapeType NULL
    • POINT

      public static final ShapeType POINT
    • POLYLINE

      public static final ShapeType POLYLINE
    • POLYGON

      public static final ShapeType POLYGON
    • MULTIPOINT

      public static final ShapeType MULTIPOINT
    • POINTZ

      public static final ShapeType POINTZ
    • POLYLINEZ

      public static final ShapeType POLYLINEZ
    • POLYGONZ

      public static final ShapeType POLYGONZ
    • MULTIPOINTZ

      public static final ShapeType MULTIPOINTZ
    • POINTM

      public static final ShapeType POINTM
    • POLYLINEM

      public static final ShapeType POLYLINEM
    • POLYGONM

      public static final ShapeType POLYGONM
    • MULTIPOINTM

      public static final ShapeType MULTIPOINTM
    • MULTIPATCH

      public static final ShapeType MULTIPATCH
    • UNDEFINED

      public static final ShapeType UNDEFINED
  • Method Details

    • values

      public static ShapeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ShapeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getType

      public static ShapeType getType(int id)
      return the corresponding ShapeType instance by int id.
      Parameters:
      id - the id
      Returns:
      the type
    • getParser

      public ShapeParser getParser(org.locationtech.jts.geom.GeometryFactory geometryFactory)
      generate a parser according to current shape type.
      Parameters:
      geometryFactory - the geometry factory
      Returns:
      the parser
    • getId

      public int getId()
      return the shape type id.
      Returns:
      the id
    • isSupported

      public boolean isSupported()
      return whether the shape type is supported by Sedona
      Returns: