Partager via


SpatialType Class

public final class SpatialType
extends ExpandableStringEnum<SpatialType>

Indicates the spatial type of index.

Field Summary

Modifier and Type Field and Description
static final SpatialType LINE_STRING

Static value LineString for SpatialType.

static final SpatialType MULTI_POLYGON

Static value MultiPolygon for SpatialType.

static final SpatialType POINT

Static value Point for SpatialType.

static final SpatialType POLYGON

Static value Polygon for SpatialType.

Constructor Summary

Constructor Description
SpatialType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SpatialType value.

Method Summary

Modifier and Type Method and Description
static SpatialType fromString(String name)

Creates or finds a SpatialType from its string representation.

static Collection<SpatialType> values()

Gets known SpatialType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

LINE_STRING

public static final SpatialType LINE_STRING

Static value LineString for SpatialType.

MULTI_POLYGON

public static final SpatialType MULTI_POLYGON

Static value MultiPolygon for SpatialType.

POINT

public static final SpatialType POINT

Static value Point for SpatialType.

POLYGON

public static final SpatialType POLYGON

Static value Polygon for SpatialType.

Constructor Details

SpatialType

@Deprecated
public SpatialType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of SpatialType value.

Method Details

fromString

public static SpatialType fromString(String name)

Creates or finds a SpatialType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding SpatialType.

values

public static Collection values()

Gets known SpatialType values.

Returns:

known SpatialType values.

Applies to