Enum ShapeType
- java.lang.Object
-
- java.lang.Enum<ShapeType>
-
- org.apache.sedona.core.formatMapper.shapefileParser.parseUtils.shp.ShapeType
-
- All Implemented Interfaces:
Serializable
,Comparable<ShapeType>
public enum ShapeType extends Enum<ShapeType> implements Serializable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MULTIPATCH
MULTIPOINT
MULTIPOINTM
MULTIPOINTZ
NULL
POINT
POINTM
POINTZ
POLYGON
POLYGONM
POLYGONZ
POLYLINE
POLYLINEM
POLYLINEZ
UNDEFINED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
return the shape type id.ShapeParser
getParser(org.locationtech.jts.geom.GeometryFactory geometryFactory)
generate a parser according to current shape type.static ShapeType
getType(int id)
return the corresponding ShapeType instance by int id.boolean
isSupported()
return whether the shape type is supported by Sedonastatic ShapeType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ShapeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ShapeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ShapeType c : ShapeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShapeType 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 nameNullPointerException
- 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:
-
-