Enum Class ShapeType
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintgetId()return the shape type id.getParser(org.locationtech.jts.geom.GeometryFactory geometryFactory) generate a parser according to current shape type.static ShapeTypegetType(int id) return the corresponding ShapeType instance by int id.booleanreturn whether the shape type is supported by Sedonastatic ShapeTypeReturns the enum constant of this class with the specified name.static ShapeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
-
POINT
-
POLYLINE
-
POLYGON
-
MULTIPOINT
-
POINTZ
-
POLYLINEZ
-
POLYGONZ
-
MULTIPOINTZ
-
POINTM
-
POLYLINEM
-
POLYGONM
-
MULTIPOINTM
-
MULTIPATCH
-
UNDEFINED
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getType
return the corresponding ShapeType instance by int id.- Parameters:
id- the id- Returns:
- the type
-
getParser
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:
-