public enum ShapeType extends Enum<ShapeType>
Enum Constant and Description |
---|
ARC
Represents an Arc shape (id = 3).
|
ARCM
Represents an ArcM shape (id = 23).
|
ARCZ
Represents an ArcZ shape (id = 13).
|
MULTIPOINT
Represents a MultiPoint shape (id = 8).
|
MULTIPOINTM
Represents a MultiPointM shape (id = 28).
|
MULTIPOINTZ
Represents a MultiPointZ shape (id = 18).
|
NULL
Represents a Null shape (id = 0).
|
POINT
Represents a Point shape (id = 1).
|
POINTM
Represents a PointM shape (id = 21).
|
POINTZ
Represents a PointZ shape (id = 11).
|
POLYGON
Represents a Polygon shape (id = 5).
|
POLYGONM
Represents a PolygonM shape (id = 25).
|
POLYGONZ
Represents a PolygonZ shape (id = 15).
|
UNDEFINED
Represents an Undefined shape (id = -1).
|
Modifier and Type | Field and Description |
---|---|
int |
id
The integer id of this ShapeType.
|
String |
name
The human-readable name for this ShapeType.
|
Modifier and Type | Method and Description |
---|---|
static ShapeType |
forID(int id)
Determine the ShapeType for the id.
|
ShapeHandler |
getShapeHandler(GeometryFactory gf)
Each ShapeType corresponds to a handler.
|
boolean |
isLineType() |
boolean |
isMultiPoint()
Is this a multipoint shape?
|
boolean |
isMultiPointType() |
boolean |
isPointType() |
boolean |
isPolygonType() |
String |
toString()
Get the name of this ShapeType.
|
static 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.
|
public static final ShapeType NULL
public static final ShapeType POINT
public static final ShapeType POINTZ
public static final ShapeType POINTM
public static final ShapeType ARC
public static final ShapeType ARCZ
public static final ShapeType ARCM
public static final ShapeType POLYGON
public static final ShapeType POLYGONZ
public static final ShapeType POLYGONM
public static final ShapeType MULTIPOINT
public static final ShapeType MULTIPOINTZ
public static final ShapeType MULTIPOINTM
public static final ShapeType UNDEFINED
public final int id
public final String name
public static ShapeType[] values()
for (ShapeType c : ShapeType.values()) System.out.println(c);
public static ShapeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
public boolean isMultiPoint()
public boolean isPointType()
public boolean isLineType()
public boolean isPolygonType()
public boolean isMultiPointType()
public static ShapeType forID(int id)
id
- The id to search for.public ShapeHandler getShapeHandler(GeometryFactory gf) throws ShapefileException
ShapefileException
- If the ShapeType is bogus.Copyright © 1996–2022 Geotools. All rights reserved.