@Api(allMethods=true) public enum LayerType extends Enum<LayerType> implements Serializable
Listing of all types of vector layers.
| Enum Constant and Description |
|---|
GEOMETRY
Vector layer without limitation on the geometry type.
|
LINESTRING
Vector layer with linestring features.
|
MULTILINESTRING
Vector layer with multi-linestring features.
|
MULTIPOINT
Vector layer with multi-point features.
|
MULTIPOLYGON
Vector layer with multi-polygon features.
|
POINT
Vector layer with point features.
|
POLYGON
Vector layer with polygon features.
|
RASTER
Raster layer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Get numerical code for the layer/geometry type.
|
String |
getGeometryType()
Convert to the type indication in
Geometry. |
String |
toString()
Convert to string.
|
static LayerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LayerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayerType RASTER
public static final LayerType POINT
public static final LayerType LINESTRING
public static final LayerType POLYGON
public static final LayerType MULTIPOINT
public static final LayerType MULTILINESTRING
public static final LayerType MULTIPOLYGON
public static final LayerType GEOMETRY
public static LayerType[] values()
for (LayerType c : LayerType.values()) System.out.println(c);
public static LayerType 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 int getCode()
public String toString()
public String getGeometryType()
Geometry.GeometryCopyright © 2015 Geosparc. All Rights Reserved.