Class Geo3dShapeFactory
- java.lang.Object
-
- org.apache.lucene.spatial.spatial4j.Geo3dShapeFactory
-
- All Implemented Interfaces:
S2ShapeFactory,org.locationtech.spatial4j.shape.ShapeFactory
public class Geo3dShapeFactory extends Object implements S2ShapeFactory
Geo3d implementation ofS2ShapeFactory- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.locationtech.spatial4j.shape.ShapeFactory
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 extends Object>, org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder
-
-
Constructor Summary
Constructors Constructor Description Geo3dShapeFactory(org.locationtech.spatial4j.context.SpatialContext context, org.locationtech.spatial4j.context.SpatialContextFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.spatial4j.shape.Circlecircle(double x, double y, double distance)org.locationtech.spatial4j.shape.Circlecircle(org.locationtech.spatial4j.shape.Point point, double distance)org.locationtech.spatial4j.shape.ShapegetS2CellShape(com.google.common.geometry.S2CellId cellId)Factory method for S2 cell shapes.org.locationtech.spatial4j.context.SpatialContextgetSpatialContext()booleanisNormWrapLongitude()org.locationtech.spatial4j.shape.ShapeFactory.LineStringBuilderlineString()org.locationtech.spatial4j.shape.ShapelineString(List<org.locationtech.spatial4j.shape.Point> list, double distance)org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuildermultiLineString()org.locationtech.spatial4j.shape.ShapeFactory.MultiPointBuildermultiPoint()org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuildermultiPolygon()<T extends org.locationtech.spatial4j.shape.Shape>
org.locationtech.spatial4j.shape.ShapeFactory.MultiShapeBuilder<T>multiShape(Class<T> aClass)<S extends org.locationtech.spatial4j.shape.Shape>
org.locationtech.spatial4j.shape.ShapeCollection<S>multiShape(List<S> list)doublenormDist(double distance)doublenormX(double x)doublenormY(double y)doublenormZ(double z)org.locationtech.spatial4j.shape.PointpointXY(double x, double y)org.locationtech.spatial4j.shape.PointpointXYZ(double x, double y, double z)org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilderpolygon()org.locationtech.spatial4j.shape.Rectanglerect(double minX, double maxX, double minY, double maxY)org.locationtech.spatial4j.shape.Rectanglerect(org.locationtech.spatial4j.shape.Point point, org.locationtech.spatial4j.shape.Point point1)voidsetCircleAccuracy(double circleAccuracy)Set the accuracy for circles in decimal degrees.voidverifyX(double x)voidverifyY(double y)voidverifyZ(double v)
-
-
-
Method Detail
-
getSpatialContext
public org.locationtech.spatial4j.context.SpatialContext getSpatialContext()
- Specified by:
getSpatialContextin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
setCircleAccuracy
public void setCircleAccuracy(double circleAccuracy)
Set the accuracy for circles in decimal degrees. Note that accuracy has no effect when the planet model is a sphere. In that case, circles are always fully precise.- Parameters:
circleAccuracy- the provided accuracy in decimal degrees.
-
isNormWrapLongitude
public boolean isNormWrapLongitude()
- Specified by:
isNormWrapLongitudein interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
normX
public double normX(double x)
- Specified by:
normXin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
normY
public double normY(double y)
- Specified by:
normYin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
normZ
public double normZ(double z)
- Specified by:
normZin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
normDist
public double normDist(double distance)
- Specified by:
normDistin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
verifyX
public void verifyX(double x)
- Specified by:
verifyXin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
verifyY
public void verifyY(double y)
- Specified by:
verifyYin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
verifyZ
public void verifyZ(double v)
- Specified by:
verifyZin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
pointXY
public org.locationtech.spatial4j.shape.Point pointXY(double x, double y)- Specified by:
pointXYin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
pointXYZ
public org.locationtech.spatial4j.shape.Point pointXYZ(double x, double y, double z)- Specified by:
pointXYZin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
rect
public org.locationtech.spatial4j.shape.Rectangle rect(org.locationtech.spatial4j.shape.Point point, org.locationtech.spatial4j.shape.Point point1)- Specified by:
rectin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
rect
public org.locationtech.spatial4j.shape.Rectangle rect(double minX, double maxX, double minY, double maxY)- Specified by:
rectin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
circle
public org.locationtech.spatial4j.shape.Circle circle(double x, double y, double distance)- Specified by:
circlein interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
circle
public org.locationtech.spatial4j.shape.Circle circle(org.locationtech.spatial4j.shape.Point point, double distance)- Specified by:
circlein interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
lineString
public org.locationtech.spatial4j.shape.Shape lineString(List<org.locationtech.spatial4j.shape.Point> list, double distance)
- Specified by:
lineStringin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
multiShape
public <S extends org.locationtech.spatial4j.shape.Shape> org.locationtech.spatial4j.shape.ShapeCollection<S> multiShape(List<S> list)
- Specified by:
multiShapein interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
lineString
public org.locationtech.spatial4j.shape.ShapeFactory.LineStringBuilder lineString()
- Specified by:
lineStringin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
polygon
public org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder polygon()
- Specified by:
polygonin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
multiShape
public <T extends org.locationtech.spatial4j.shape.Shape> org.locationtech.spatial4j.shape.ShapeFactory.MultiShapeBuilder<T> multiShape(Class<T> aClass)
- Specified by:
multiShapein interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
multiPoint
public org.locationtech.spatial4j.shape.ShapeFactory.MultiPointBuilder multiPoint()
- Specified by:
multiPointin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
multiLineString
public org.locationtech.spatial4j.shape.ShapeFactory.MultiLineStringBuilder multiLineString()
- Specified by:
multiLineStringin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
multiPolygon
public org.locationtech.spatial4j.shape.ShapeFactory.MultiPolygonBuilder multiPolygon()
- Specified by:
multiPolygonin interfaceorg.locationtech.spatial4j.shape.ShapeFactory
-
getS2CellShape
public org.locationtech.spatial4j.shape.Shape getS2CellShape(com.google.common.geometry.S2CellId cellId)
Description copied from interface:S2ShapeFactoryFactory method for S2 cell shapes.- Specified by:
getS2CellShapein interfaceS2ShapeFactory- Parameters:
cellId- The S2 cell id- Returns:
- the shape representing the cell.
-
-