Package com.azure.core.models
Class GeoObjectType
Represents the type of GeoJSON object.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GeoObjectTypeGeoJSON geometry collection.static final GeoObjectTypeGeoJSON line string.static final GeoObjectTypeGeoJSON multi-line string.static final GeoObjectTypeGeoJSON multi-point.static final GeoObjectTypeGeoJSON multi-polygon.static final GeoObjectTypeGeoJSON point.static final GeoObjectTypeGeoJSON polygon. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoObjectTypefromString(String name) Creates or gets a GeoObjectType from its string representation.static Collection<GeoObjectType>values()Gets all known GeoObjectType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
POINT
GeoJSON point. -
MULTI_POINT
GeoJSON multi-point. -
POLYGON
GeoJSON polygon. -
MULTI_POLYGON
GeoJSON multi-polygon. -
LINE_STRING
GeoJSON line string. -
MULTI_LINE_STRING
GeoJSON multi-line string. -
GEOMETRY_COLLECTION
GeoJSON geometry collection.
-
-
Constructor Details
-
GeoObjectType
Deprecated.Use one of the constants or thefromString(String)factory method.Creates a new instance ofGeoObjectTypewithout aExpandableStringEnum.toString()value.This constructor shouldn't be called as it will produce a
GeoObjectTypewhich doesn't have a String enum value.
-
-
Method Details
-
fromString
Creates or gets a GeoObjectType from its string representation.- Parameters:
name- Name of the GeoObjectType.- Returns:
- The corresponding GeoObjectType.
-
values
Gets all known GeoObjectType values.- Returns:
- All known GeoObjectType values.
-
fromString(String)factory method.