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 | Method and Description |
---|---|
(package private) static void |
GeometryCodecHelper.encodeCoordinateReferenceSystem(BsonWriter writer,
Geometry geometry,
EncoderContext encoderContext,
CodecRegistry registry) |
private void |
GeometryCollectionCodec.encodeGeometry(BsonWriter writer,
Geometry geometry,
EncoderContext encoderContext) |
(package private) static void |
GeometryCodecHelper.encodeGeometry(BsonWriter writer,
Geometry geometry,
EncoderContext encoderContext,
CodecRegistry registry,
java.lang.Runnable coordinatesEncoder) |
(package private) static void |
GeometryCodecHelper.encodeType(BsonWriter writer,
Geometry geometry) |