public class Geo extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Geo.Unit |
Constructor and Description |
---|
Geo() |
Modifier and Type | Method and Description |
---|---|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
inside(Point center,
double radius)
Graph predicate to find whether an entity is inside a defined area using a cartesian coordinate
system.
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
inside(Point center,
double radius,
Geo.Unit units)
Graph predicate to find whether an entity is inside a defined area using a geo coordinate
system.
|
static org.apache.tinkerpop.gremlin.process.traversal.P<Object> |
inside(Polygon polygon)
Graph predicate to find whether an entity is inside a defined
Polygon . |
static LineString |
lineString(double... points)
Create a
LineString object with the list of points
given in parameter. |
static Point |
point(double x,
double y)
Create a
Point object with the given x-axis and y-axis
coordinates. |
static Polygon |
polygon(double... points)
Create a
Polygon with the points given in parameters. |
public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> inside(Point center, double radius, Geo.Unit units)
center
- the center of the area to look into.radius
- the radius of the area to look into.units
- the units of the radius.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> inside(Point center, double radius)
center
- the center of the area to look into.radius
- the radius of the area to look into.public static org.apache.tinkerpop.gremlin.process.traversal.P<Object> inside(Polygon polygon)
Polygon
.polygon
- the polygon entity to check inside of.public static Point point(double x, double y)
Point
object with the given x-axis and y-axis
coordinates.x
- the x-axis coordinate.y
- the y-axis coordinate.public static LineString lineString(double... points)
LineString
object with the list of points
given in parameter.points
- the points that define the linestring.Copyright © 2012–2019. All rights reserved.