Interface Geometry

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      com.mongodb.client.model.geojson.Geometry convert()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Converts this type to the driver type
      com.mongodb.client.model.geojson.Geometry convert​(CoordinateReferenceSystem crs)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Converts this type to the driver type
      List<?> getCoordinates()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a list of coordinates for this Geometry type.
    • Method Detail

      • getCoordinates

        List<?> getCoordinates()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns a list of coordinates for this Geometry type. For something like a Point, this will be a pair of lat/long coordinates, but for more complex types this will be a list of other Geometry objects. Used for serialisation to MongoDB.
        Returns:
        a List containing either Geometry objects, or a pair of coordinates as doubles
      • convert

        com.mongodb.client.model.geojson.Geometry convert()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Converts this type to the driver type
        Returns:
        the driver type
      • convert

        com.mongodb.client.model.geojson.Geometry convert​(CoordinateReferenceSystem crs)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Converts this type to the driver type
        Parameters:
        crs - the CRS to use
        Returns:
        the driver type