Package | Description |
---|---|
com.datastax.driver.dse.geometry | |
com.datastax.driver.dse.geometry.codecs |
Modifier and Type | Method and Description |
---|---|
static Point |
Point.fromGeoJson(String source)
Creates a point from its JSON 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()
Returns the points composing this line string.
|
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.
|
Constructor and Description |
---|
LineString(Point p1,
Point p2,
Point... pn)
Creates a line string from a series of 2 or more points.
|
LineString(Point p1,
Point p2,
Point... pn)
Creates a line string from a series of 2 or more points.
|
Polygon(Point p1,
Point p2,
Point p3,
Point... pn)
Creates a polygon instance from a series of 3 or more points.
|
Polygon(Point p1,
Point p2,
Point p3,
Point... pn)
Creates a polygon instance from a series of 3 or more points.
|
Modifier and Type | Method and Description |
---|---|
protected Point |
PointCodec.fromWellKnownBinary(ByteBuffer source) |
protected Point |
PointCodec.fromWellKnownText(String source) |
Modifier and Type | Method and Description |
---|---|
protected ByteBuffer |
PointCodec.toWellKnownBinary(Point geometry) |
protected String |
PointCodec.toWellKnownText(Point geometry) |