| Package | Description |
|---|---|
| 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 | Field and Description |
|---|---|
private Position |
Point.coordinate |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Position> |
MultiPoint.coordinates |
private java.util.List<Position> |
LineString.coordinates |
private java.util.List<java.util.List<Position>> |
MultiLineString.coordinates |
private java.util.List<Position> |
PolygonCoordinates.exterior |
private java.util.List<java.util.List<Position>> |
PolygonCoordinates.holes |
| Modifier and Type | Method and Description |
|---|---|
Position |
Point.getCoordinates()
Gets the GeoJSON coordinates of this point.
|
Position |
Point.getPosition()
Gets the position of this point.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Position> |
MultiPoint.getCoordinates()
Gets the GeoJSON coordinates of this MultiPoint.
|
java.util.List<Position> |
LineString.getCoordinates()
Gets the GeoJSON coordinates of this LineString.
|
java.util.List<java.util.List<Position>> |
MultiLineString.getCoordinates()
Gets the GeoJSON coordinates of this MultiLineString
|
java.util.List<Position> |
PolygonCoordinates.getExterior()
Gets the exterior of the polygon.
|
java.util.List<Position> |
Polygon.getExterior()
Gets the exterior coordinates.
|
java.util.List<java.util.List<Position>> |
PolygonCoordinates.getHoles()
Gets the holes in the polygon.
|
java.util.List<java.util.List<Position>> |
Polygon.getHoles()
Get the holes in this polygon.
|
| Constructor and Description |
|---|
Point(CoordinateReferenceSystem coordinateReferenceSystem,
Position coordinate)
Construct an instance with the given coordinate and coordinate reference system.
|
Point(Position coordinate)
Construct an instance with the given coordinate.
|
| Constructor and Description |
|---|
LineString(CoordinateReferenceSystem coordinateReferenceSystem,
java.util.List<Position> coordinates)
Construct an instance with the given coordinates and coordinate reference system.
|
LineString(java.util.List<Position> coordinates)
Construct an instance with the given coordinates.
|
MultiLineString(CoordinateReferenceSystem coordinateReferenceSystem,
java.util.List<java.util.List<Position>> coordinates)
Construct an instance with the given coordinates and coordinate reference system.
|
MultiLineString(java.util.List<java.util.List<Position>> coordinates)
Construct an instance with the given coordinates.
|
MultiPoint(CoordinateReferenceSystem coordinateReferenceSystem,
java.util.List<Position> coordinates)
Construct an instance with the given coordinates and coordinate reference system.
|
MultiPoint(java.util.List<Position> coordinates)
Construct an instance with the given coordinates.
|
Polygon(java.util.List<Position> exterior,
java.util.List<Position>... holes)
Construct an instance with the given coordinates.
|
PolygonCoordinates(java.util.List<Position> exterior,
java.util.List<Position>... holes)
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
GeometryCodecHelper.encodePosition(BsonWriter writer,
Position value) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
GeometryCodecHelper.encodeLinearRing(java.util.List<Position> ring,
BsonWriter writer) |