Package | Description |
---|---|
com.mongodb.client.model |
This package contains models and options that help describe MongoCollection operations
|
com.mongodb.client.model.geojson |
This package contains classes that represent GeoJSON objects.
|
com.mongodb.client.model.geojson.codecs |
This package contains classes that encode and decode GeoJSON objects.
|
Modifier and Type | Method and Description |
---|---|
static Bson |
Filters.geoIntersects(java.lang.String fieldName,
Geometry geometry)
Creates a filter that matches all documents containing a field with geospatial data that intersects with the specified shape.
|
static Bson |
Filters.geoWithin(java.lang.String fieldName,
Geometry geometry)
Creates a filter that matches all documents containing a field with geospatial data that exists entirely within the specified shape.
|
Modifier and Type | Class and Description |
---|---|
class |
GeometryCollection
A representation of a GeoJSON GeometryCollection.
|
class |
LineString
A representation of a GeoJSON LineString.
|
class |
MultiLineString
A representation of a GeoJSON MultiLineString.
|
class |
MultiPoint
A representation of a GeoJSON MultiPoint.
|
class |
MultiPolygon
A representation of a GeoJSON MultiPolygon.
|
class |
Point
A representation of a GeoJSON Point.
|
class |
Polygon
A representation of a GeoJSON Polygon.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends Geometry> |
GeometryCollection.geometries |
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends Geometry> |
GeometryCollection.getGeometries()
Gets the list of Geometry objects in this collection.
|
Constructor and Description |
---|
GeometryCollection(CoordinateReferenceSystem coordinateReferenceSystem,
java.util.List<? extends Geometry> geometries)
Construct an instance with the given list of Geometry objects
|
GeometryCollection(java.util.List<? extends Geometry> geometries)
Construct an instance with the given list of Geometry objects
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractGeometryCodec<T extends Geometry> |
Modifier and Type | Method and Description |
---|---|
(package private) static <T extends Geometry> |
GeometryDecoderHelper.decodeGeometry(BsonReader reader,
java.lang.Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
private static Geometry |
GeometryDecoderHelper.decodeGeometry(BsonReader reader) |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<? extends Geometry> |
GeometryDecoderHelper.decodeGeometries(BsonReader reader) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
GeometryEncoderHelper.encodeCoordinateReferenceSystem(BsonWriter writer,
Geometry geometry,
EncoderContext encoderContext,
CodecRegistry registry) |
(package private) static void |
GeometryEncoderHelper.encodeGeometry(BsonWriter writer,
Geometry value,
EncoderContext encoderContext,
CodecRegistry registry) |