public class Geo3dShapeFactory extends Object implements S2ShapeFactory
S2ShapeFactory
org.locationtech.spatial4j.shape.ShapeFactory.LineStringBuilder, org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuilder, org.locationtech.spatial4j.shape.ShapeFactory.MultiPointBuilder, org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuilder, org.locationtech.spatial4j.shape.ShapeFactory.MultiShapeBuilder<T extends org.locationtech.spatial4j.shape.Shape>, org.locationtech.spatial4j.shape.ShapeFactory.PointsBuilder<T>, org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder
Constructor and Description |
---|
Geo3dShapeFactory(org.locationtech.spatial4j.context.SpatialContext context,
org.locationtech.spatial4j.context.SpatialContextFactory factory) |
Modifier and Type | Method and Description |
---|---|
org.locationtech.spatial4j.shape.Circle |
circle(double x,
double y,
double distance) |
org.locationtech.spatial4j.shape.Circle |
circle(org.locationtech.spatial4j.shape.Point point,
double distance) |
org.locationtech.spatial4j.shape.Shape |
getS2CellShape(com.google.common.geometry.S2CellId cellId)
Factory method for S2 cell shapes.
|
org.locationtech.spatial4j.context.SpatialContext |
getSpatialContext() |
boolean |
isNormWrapLongitude() |
org.locationtech.spatial4j.shape.ShapeFactory.LineStringBuilder |
lineString() |
org.locationtech.spatial4j.shape.Shape |
lineString(List<org.locationtech.spatial4j.shape.Point> list,
double distance) |
org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuilder |
multiLineString() |
org.locationtech.spatial4j.shape.ShapeFactory.MultiPointBuilder |
multiPoint() |
org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuilder |
multiPolygon() |
<T extends org.locationtech.spatial4j.shape.Shape> |
multiShape(Class<T> aClass) |
<S extends org.locationtech.spatial4j.shape.Shape> |
multiShape(List<S> list) |
double |
normDist(double distance) |
double |
normX(double x) |
double |
normY(double y) |
double |
normZ(double z) |
org.locationtech.spatial4j.shape.Point |
pointXY(double x,
double y) |
org.locationtech.spatial4j.shape.Point |
pointXYZ(double x,
double y,
double z) |
org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder |
polygon() |
org.locationtech.spatial4j.shape.Rectangle |
rect(double minX,
double maxX,
double minY,
double maxY) |
org.locationtech.spatial4j.shape.Rectangle |
rect(org.locationtech.spatial4j.shape.Point point,
org.locationtech.spatial4j.shape.Point point1) |
void |
setCircleAccuracy(double circleAccuracy)
Set the accuracy for circles in decimal degrees.
|
void |
verifyX(double x) |
void |
verifyY(double y) |
void |
verifyZ(double v) |
public Geo3dShapeFactory(org.locationtech.spatial4j.context.SpatialContext context, org.locationtech.spatial4j.context.SpatialContextFactory factory)
public org.locationtech.spatial4j.context.SpatialContext getSpatialContext()
getSpatialContext
in interface org.locationtech.spatial4j.shape.ShapeFactory
public void setCircleAccuracy(double circleAccuracy)
circleAccuracy
- the provided accuracy in decimal degrees.public boolean isNormWrapLongitude()
isNormWrapLongitude
in interface org.locationtech.spatial4j.shape.ShapeFactory
public double normX(double x)
normX
in interface org.locationtech.spatial4j.shape.ShapeFactory
public double normY(double y)
normY
in interface org.locationtech.spatial4j.shape.ShapeFactory
public double normZ(double z)
normZ
in interface org.locationtech.spatial4j.shape.ShapeFactory
public double normDist(double distance)
normDist
in interface org.locationtech.spatial4j.shape.ShapeFactory
public void verifyX(double x)
verifyX
in interface org.locationtech.spatial4j.shape.ShapeFactory
public void verifyY(double y)
verifyY
in interface org.locationtech.spatial4j.shape.ShapeFactory
public void verifyZ(double v)
verifyZ
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Point pointXY(double x, double y)
pointXY
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Point pointXYZ(double x, double y, double z)
pointXYZ
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Rectangle rect(org.locationtech.spatial4j.shape.Point point, org.locationtech.spatial4j.shape.Point point1)
rect
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Rectangle rect(double minX, double maxX, double minY, double maxY)
rect
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Circle circle(double x, double y, double distance)
circle
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Circle circle(org.locationtech.spatial4j.shape.Point point, double distance)
circle
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Shape lineString(List<org.locationtech.spatial4j.shape.Point> list, double distance)
lineString
in interface org.locationtech.spatial4j.shape.ShapeFactory
public <S extends org.locationtech.spatial4j.shape.Shape> org.locationtech.spatial4j.shape.ShapeCollection<S> multiShape(List<S> list)
multiShape
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.ShapeFactory.LineStringBuilder lineString()
lineString
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder polygon()
polygon
in interface org.locationtech.spatial4j.shape.ShapeFactory
public <T extends org.locationtech.spatial4j.shape.Shape> org.locationtech.spatial4j.shape.ShapeFactory.MultiShapeBuilder<T> multiShape(Class<T> aClass)
multiShape
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.ShapeFactory.MultiPointBuilder multiPoint()
multiPoint
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuilder multiLineString()
multiLineString
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuilder multiPolygon()
multiPolygon
in interface org.locationtech.spatial4j.shape.ShapeFactory
public org.locationtech.spatial4j.shape.Shape getS2CellShape(com.google.common.geometry.S2CellId cellId)
S2ShapeFactory
getS2CellShape
in interface S2ShapeFactory
cellId
- The S2 cell idCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.