public enum GeoJsonType extends Enum<GeoJsonType>
Enum Constant and Description |
---|
LINE_STRING |
MULTI_LINE_STRING |
MULTI_POINT |
MULTI_POLYGON |
POINT |
POLYGON |
Modifier and Type | Method and Description |
---|---|
Geometry |
createGeometry(List<?> geometries) |
static GeoJsonType |
fromString(String type)
Allows you to turn String values of types into the Enum that corresponds to this type.
|
String |
getType()
Returns the value that needs to be stored with the GeoJson values in the database to declare which GeoJson type the coordinates
represent.
|
Class<? extends Geometry> |
getTypeClass()
Returns a concrete class that implements Geometry, the class that represents this GeoJsonType.
|
static GeoJsonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeoJsonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeoJsonType POINT
public static final GeoJsonType LINE_STRING
public static final GeoJsonType POLYGON
public static final GeoJsonType MULTI_POINT
public static final GeoJsonType MULTI_LINE_STRING
public static final GeoJsonType MULTI_POLYGON
public static GeoJsonType[] values()
for (GeoJsonType c : GeoJsonType.values()) System.out.println(c);
public static GeoJsonType 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 getType()
public Class<? extends Geometry> getTypeClass()
public static GeoJsonType fromString(String type)
type
- a String, one of the values from
this
list of supported typesCopyright © 2016. All rights reserved.