org.apache.olingo.commons.api.data

## Class GeoUtils

- java.lang.Object
- - org.apache.olingo.commons.api.data.GeoUtils

-     public final class GeoUtils
      extends Object

  Utilities class for Geography data types.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static Geospatial.Dimension` | `getDimension(EdmPrimitiveTypeKind type)` Get dimension based on given Geography / Geometry type.
    `static EdmPrimitiveTypeKind` | `getType(Geospatial.Dimension dimension, String elementName)` Get type based on given dimension (Geography / Geometry) and element name.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getDimension

          public static Geospatial.Dimension getDimension(EdmPrimitiveTypeKind type)

      Get dimension based on given Geography / Geometry type.
      Parameters:
        `type` - a geography / geometry type
      Returns:
        dimension according to given geography / geometry type

    - #### getType

          public static EdmPrimitiveTypeKind getType(Geospatial.Dimension dimension,
                                                     String elementName)

      Get type based on given dimension (Geography / Geometry) and element name.
      Parameters:
        `dimension` - either geography or geometry
        `elementName` - Element of return. Can be one of the following constants
        - `Constants.ELEM_POINT`
        - `Constants.ELEM_MULTIPOINT`
        - `Constants.ELEM_LINESTRING`
        - `Constants.ELEM_MULTILINESTRING`
        - `Constants.ELEM_POLYGON`
        - `Constants.ELEM_MULTIPOLYGON`
        - `Constants.ELEM_GEOCOLLECTION`
      Returns:
        elementName name of type

Copyright © 2013–2020 The Apache Software Foundation. All rights reserved.