Package com.azure.core.models
Class GeoObjectType
Represents the type of a GeoJSON object.
This class encapsulates the type of a GeoJSON object. It provides constants for the different types of
GeoJSON objects, such as POINT, MULTI_POINT, POLYGON, MULTI_POLYGON,
LINE_STRING, MULTI_LINE_STRING, and GEOMETRY_COLLECTION.
Each GeoJSON object type is represented by an instance of this class. You can use the
fromString(String) method to create or get a GeoObjectType from its string representation,
and the values() method to get all known GeoObjectType values.
This class is useful when you want to work with GeoJSON objects and need to specify or check the type of a GeoJSON object.
- See Also:
-
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.