Class GeoObjectType

All Implemented Interfaces:
ExpandableEnum<String>

public final class GeoObjectType extends ExpandableStringEnum<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 Details

    • POINT

      public static final GeoObjectType POINT
      GeoJSON point.
    • MULTI_POINT

      public static final GeoObjectType MULTI_POINT
      GeoJSON multi-point.
    • POLYGON

      public static final GeoObjectType POLYGON
      GeoJSON polygon.
    • MULTI_POLYGON

      public static final GeoObjectType MULTI_POLYGON
      GeoJSON multi-polygon.
    • LINE_STRING

      public static final GeoObjectType LINE_STRING
      GeoJSON line string.
    • MULTI_LINE_STRING

      public static final GeoObjectType MULTI_LINE_STRING
      GeoJSON multi-line string.
    • GEOMETRY_COLLECTION

      public static final GeoObjectType GEOMETRY_COLLECTION
      GeoJSON geometry collection.
  • Constructor Details

  • Method Details

    • fromString

      public static GeoObjectType fromString(String name)
      Creates or gets a GeoObjectType from its string representation.
      Parameters:
      name - Name of the GeoObjectType.
      Returns:
      The corresponding GeoObjectType.
    • values

      public static Collection<GeoObjectType> values()
      Gets all known GeoObjectType values.
      Returns:
      All known GeoObjectType values.