Class GeoObjectType


public final class GeoObjectType extends ExpandableStringEnum<GeoObjectType>
Represents the type of a GeoJSON object.
  • 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

    • GeoObjectType

      public GeoObjectType()
  • 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.