public static enum SpatialTypeUtils.SpatialType extends Enum<SpatialTypeUtils.SpatialType>
| Enum Constant and Description |
|---|
GEOMETRY |
GEOMETRYCOLLECTION |
LINESTRING |
MULTILINESTRING |
MULTIPOINT |
MULTIPOLYGON |
POINT |
POLYGON |
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
static SpatialTypeUtils.SpatialType |
fromGeometry(org.locationtech.jts.geom.Geometry g)
Returns the OGC type of a geometry.
|
static SpatialTypeUtils.SpatialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpatialTypeUtils.SpatialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpatialTypeUtils.SpatialType GEOMETRY
public static final SpatialTypeUtils.SpatialType POINT
public static final SpatialTypeUtils.SpatialType LINESTRING
public static final SpatialTypeUtils.SpatialType POLYGON
public static final SpatialTypeUtils.SpatialType MULTIPOINT
public static final SpatialTypeUtils.SpatialType MULTILINESTRING
public static final SpatialTypeUtils.SpatialType MULTIPOLYGON
public static final SpatialTypeUtils.SpatialType GEOMETRYCOLLECTION
public static SpatialTypeUtils.SpatialType[] values()
for (SpatialTypeUtils.SpatialType c : SpatialTypeUtils.SpatialType.values()) System.out.println(c);
public static SpatialTypeUtils.SpatialType 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 code()
public static SpatialTypeUtils.SpatialType fromGeometry(org.locationtech.jts.geom.Geometry g)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.