Package | Description |
---|---|
com.datastax.dse.driver.api.core.data.geometry | |
com.datastax.dse.driver.api.core.graph.predicates | |
com.datastax.dse.driver.api.core.type.codec |
Modifier and Type | Method and Description |
---|---|
static Point |
Point.fromCoordinates(double x,
double y)
Creates a new point.
|
static Point |
Point.fromGeoJson(String source)
Creates a point from a GeoJSON
Point representation.
|
static Point |
Point.fromWellKnownBinary(ByteBuffer source)
Creates a point from its Well-known Binary
(WKB) representation.
|
static Point |
Point.fromWellKnownText(String source)
Creates a point from its Well-known
Text (WKT) representation.
|
Modifier and Type | Method and Description |
---|---|
List<Point> |
Polygon.getExteriorRing()
Returns the external ring of the polygon.
|
List<List<Point>> |
Polygon.getInteriorRings()
Returns the internal rings of the polygon, i.e.
|
List<Point> |
LineString.getPoints() |
Modifier and Type | Method and Description |
---|---|
Polygon.Builder |
Polygon.Builder.addRing(Point p1,
Point p2,
Point p3,
Point... pn)
Adds a new ring for this polygon.
|
Polygon.Builder |
Polygon.Builder.addRing(Point p1,
Point p2,
Point p3,
Point... pn)
Adds a new ring for this polygon.
|
static LineString |
LineString.fromPoints(Point p1,
Point p2,
Point... pn)
Creates a line string from two or more points.
|
static LineString |
LineString.fromPoints(Point p1,
Point p2,
Point... pn)
Creates a line string from two or more points.
|
static Polygon |
Polygon.fromPoints(Point p1,
Point p2,
Point p3,
Point... pn)
Creates a polygon from a series of 3 or more points.
|
static Polygon |
Polygon.fromPoints(Point p1,
Point p2,
Point p3,
Point... pn)
Creates a polygon from a series of 3 or more points.
|
Modifier and Type | Method and Description |
---|---|
static Point |
Geo.point(double x,
double y)
Creates a point from the given coordinates.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
Geo.inside(Point center,
double radius)
Finds whether an entity is inside the given circular area using a cartesian coordinate system.
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
Geo.inside(Point center,
double radius,
Geo.Unit units)
Finds whether an entity is inside the given circular area using a geo coordinate system.
|
static LineString |
Geo.lineString(Point point1,
Point point2,
Point... otherPoints)
Creates a line string from the given (at least 2) points.
|
static LineString |
Geo.lineString(Point point1,
Point point2,
Point... otherPoints)
Creates a line string from the given (at least 2) points.
|
static Polygon |
Geo.polygon(Point p1,
Point p2,
Point p3,
Point... otherPoints)
Creates a polygon from the given (at least 3) points.
|
static Polygon |
Geo.polygon(Point p1,
Point p2,
Point p3,
Point... otherPoints)
Creates a polygon from the given (at least 3) points.
|
Modifier and Type | Field and Description |
---|---|
static TypeCodec<Point> |
DseTypeCodecs.POINT |
Copyright © 2017–2024. All rights reserved.