Uses of Class
org.locationtech.spatial4j.context.SpatialContext
-
-
Uses of SpatialContext in org.apache.lucene.spatial
Fields in org.apache.lucene.spatial declared as SpatialContext Modifier and Type Field Description protected SpatialContextSpatialStrategy. ctxMethods in org.apache.lucene.spatial that return SpatialContext Modifier and Type Method Description SpatialContextSpatialStrategy. getSpatialContext()Constructors in org.apache.lucene.spatial with parameters of type SpatialContext Constructor Description SpatialStrategy(SpatialContext ctx, String fieldName)Constructs the spatial strategy with its mandatory arguments. -
Uses of SpatialContext in org.apache.lucene.spatial.prefix.tree
Fields in org.apache.lucene.spatial.prefix.tree declared as SpatialContext Modifier and Type Field Description protected SpatialContextSpatialPrefixTree. ctxprotected SpatialContextSpatialPrefixTreeFactory. ctxMethods in org.apache.lucene.spatial.prefix.tree that return SpatialContext Modifier and Type Method Description SpatialContextSpatialPrefixTree. getSpatialContext()Methods in org.apache.lucene.spatial.prefix.tree with parameters of type SpatialContext Modifier and Type Method Description protected voidSpatialPrefixTreeFactory. init(Map<String,String> args, SpatialContext ctx)static SpatialPrefixTreeSpatialPrefixTreeFactory. makeSPT(Map<String,String> args, ClassLoader classLoader, SpatialContext ctx)The factory is looked up via "prefixTree" in args, expecting "geohash" or "quad".Constructors in org.apache.lucene.spatial.prefix.tree with parameters of type SpatialContext Constructor Description GeohashPrefixTree(SpatialContext ctx, int maxLevels)PackedQuadPrefixTree(SpatialContext ctx, int maxLevels)QuadPrefixTree(SpatialContext ctx)QuadPrefixTree(SpatialContext ctx, int maxLevels)QuadPrefixTree(SpatialContext ctx, Rectangle bounds, int maxLevels)S2PrefixTree(SpatialContext ctx, int maxLevels)Creates a S2 spatial tree with arity 1.S2PrefixTree(SpatialContext ctx, int maxLevels, int arity)Creates a S2 spatial tree with provided arity.SpatialPrefixTree(SpatialContext ctx, int maxLevels) -
Uses of SpatialContext in org.apache.lucene.spatial.query
Methods in org.apache.lucene.spatial.query with parameters of type SpatialContext Modifier and Type Method Description static doubleSpatialArgs. calcDistanceFromErrPct(Shape shape, double distErrPct, SpatialContext ctx)Computes the distance given a shape and thedistErrPct.SpatialArgsSpatialArgsParser. parse(String v, SpatialContext ctx)Parses a string such as "Intersects(ENVELOPE(-10,-8,22,20)) distErrPct=0.025".protected ShapeSpatialArgsParser. parseShape(String str, SpatialContext ctx)doubleSpatialArgs. resolveDistErr(SpatialContext ctx, double defaultDistErrPct)Gets the error distance that specifies how precise the query shape is. -
Uses of SpatialContext in org.apache.lucene.spatial.util
Constructors in org.apache.lucene.spatial.util with parameters of type SpatialContext Constructor Description ShapeFieldCacheDistanceValueSource(SpatialContext ctx, ShapeFieldCacheProvider<Point> provider, Point from, double multiplier) -
Uses of SpatialContext in org.elasticsearch.common.geo
Constructors in org.elasticsearch.common.geo with parameters of type SpatialContext Constructor Description XShapeCollection(List<S> shapes, SpatialContext ctx) -
Uses of SpatialContext in org.locationtech.spatial4j.context
Fields in org.locationtech.spatial4j.context declared as SpatialContext Modifier and Type Field Description static SpatialContextSpatialContext. GEOA popular default SpatialContext implementation for geospatial.Methods in org.locationtech.spatial4j.context that return SpatialContext Modifier and Type Method Description static SpatialContextSpatialContextFactory. makeSpatialContext(Map<String,String> args, ClassLoader classLoader)Creates a newSpatialContextbased on configuration inargs.SpatialContextSpatialContextFactory. newSpatialContext()Subclasses should simply construct the instance from the initialized configuration.Methods in org.locationtech.spatial4j.context with parameters of type SpatialContext Modifier and Type Method Description BinaryCodecSpatialContextFactory. makeBinaryCodec(SpatialContext ctx)SupportedFormatsSpatialContextFactory. makeFormats(SpatialContext ctx)ShapeFactorySpatialContextFactory. makeShapeFactory(SpatialContext ctx) -
Uses of SpatialContext in org.locationtech.spatial4j.context.jts
Subclasses of SpatialContext in org.locationtech.spatial4j.context.jts Modifier and Type Class Description classJtsSpatialContextEnhances the defaultSpatialContextwith support for Polygons (and other geometries) using JTS. -
Uses of SpatialContext in org.locationtech.spatial4j.distance
Methods in org.locationtech.spatial4j.distance with parameters of type SpatialContext Modifier and Type Method Description RectangleCartesianDistCalc. calcBoxByDistFromPt(Point from, double distDEG, SpatialContext ctx, Rectangle reuse)RectangleDistanceCalculator. calcBoxByDistFromPt(Point from, double distDEG, SpatialContext ctx, Rectangle reuse)Calculates the bounding box of a circle, as specified by its center point and distance.RectangleGeodesicSphereDistCalc. calcBoxByDistFromPt(Point from, double distDEG, SpatialContext ctx, Rectangle reuse)doubleCartesianDistCalc. calcBoxByDistFromPt_yHorizAxisDEG(Point from, double distDEG, SpatialContext ctx)doubleDistanceCalculator. calcBoxByDistFromPt_yHorizAxisDEG(Point from, double distDEG, SpatialContext ctx)TheYcoordinate of the horizontal axis of a circle that has maximum width.doubleGeodesicSphereDistCalc. calcBoxByDistFromPt_yHorizAxisDEG(Point from, double distDEG, SpatialContext ctx)static RectangleDistanceUtils. calcBoxByDistFromPtDEG(double lat, double lon, double distDEG, SpatialContext ctx, Rectangle reuse)Calculates the bounding box of a circle, as specified by its center point and distance.PointCartesianDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)PointDistanceCalculator. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)Calculates where a destination point is given an origin (from) distance, and bearing (given in degrees -- 0-360).PointGeodesicSphereDistCalc. pointOnBearing(Point from, double distDEG, double bearingDEG, SpatialContext ctx, Point reuse)static PointDistanceUtils. pointOnBearingRAD(double startLat, double startLon, double distanceRAD, double bearingRAD, SpatialContext ctx, Point reuse)Given a start point (startLat, startLon), distance, and a bearing on a sphere, return the destination point. -
Uses of SpatialContext in org.locationtech.spatial4j.io
Fields in org.locationtech.spatial4j.io declared as SpatialContext Modifier and Type Field Description protected SpatialContextBinaryCodec. ctxprotected SpatialContextGeoJSONReader. ctxprotected SpatialContextWKTReader. ctxMethods in org.locationtech.spatial4j.io that return SpatialContext Modifier and Type Method Description SpatialContextWKTReader.State. getCtx()Methods in org.locationtech.spatial4j.io with parameters of type SpatialContext Modifier and Type Method Description static PointGeohashUtils. decode(String geohash, SpatialContext ctx)Decodes the given geohash into a longitude (X) and latitude (Y)static RectangleGeohashUtils. decodeBoundary(String geohash, SpatialContext ctx)Returns min-max lon (X), min-max lat (Y).static ShapeLegacyShapeReader. readShapeOrNull(String str, SpatialContext ctx)Deprecated.Reads the shape specification as defined in the class javadocs.Constructors in org.locationtech.spatial4j.io with parameters of type SpatialContext Constructor Description BinaryCodec(SpatialContext ctx, SpatialContextFactory factory)GeoJSONReader(SpatialContext ctx, SpatialContextFactory factory)GeoJSONWriter(SpatialContext ctx, SpatialContextFactory factory)LegacyShapeReader(SpatialContext ctx, SpatialContextFactory factory)Deprecated.LegacyShapeWriter(SpatialContext ctx, SpatialContextFactory factory)Deprecated.PolyshapeReader(SpatialContext ctx, SpatialContextFactory factory)PolyshapeWriter(SpatialContext ctx, SpatialContextFactory factory)WKTReader(SpatialContext ctx, SpatialContextFactory factory)This constructor is required bySpatialContextFactory.makeFormats(SpatialContext). -
Uses of SpatialContext in org.locationtech.spatial4j.shape
Classes in org.locationtech.spatial4j.shape with type parameters of type SpatialContext Modifier and Type Class Description classBaseShape<T extends SpatialContext>Fields in org.locationtech.spatial4j.shape declared as SpatialContext Modifier and Type Field Description protected TBaseShape. ctxprotected SpatialContextShapeCollection. ctxMethods in org.locationtech.spatial4j.shape that return SpatialContext Modifier and Type Method Description SpatialContextShape. getContext()Get the SpatialContext that created the ShapeSpatialContextShapeCollection. getContext()SpatialContextShapeFactory. getSpatialContext()Methods in org.locationtech.spatial4j.shape with parameters of type SpatialContext Modifier and Type Method Description protected RectangleShapeCollection. computeBoundingBox(Collection<? extends Shape> shapes, SpatialContext ctx)doubleShape. getArea(SpatialContext ctx)Calculates the area of the shape, in square-degrees.doubleShapeCollection. getArea(SpatialContext ctx)ShapeShape. getBuffered(double distance, SpatialContext ctx)Returns a buffered version of this shape.ShapeCollectionShapeCollection. getBuffered(double distance, SpatialContext ctx)Constructors in org.locationtech.spatial4j.shape with parameters of type SpatialContext Constructor Description ShapeCollection(List<S> shapes, SpatialContext ctx)WARNING:shapesis copied by reference. -
Uses of SpatialContext in org.locationtech.spatial4j.shape.impl
Fields in org.locationtech.spatial4j.shape.impl declared as SpatialContext Modifier and Type Field Description protected SpatialContextShapeFactoryImpl. ctxMethods in org.locationtech.spatial4j.shape.impl that return SpatialContext Modifier and Type Method Description SpatialContextShapeFactoryImpl. getSpatialContext()Methods in org.locationtech.spatial4j.shape.impl with parameters of type SpatialContext Modifier and Type Method Description doubleBufferedLine. getArea(SpatialContext ctx)doubleBufferedLineString. getArea(SpatialContext ctx)doubleCircleImpl. getArea(SpatialContext ctx)doublePointImpl. getArea(SpatialContext ctx)doubleRectangleImpl. getArea(SpatialContext ctx)ShapeBufferedLine. getBuffered(double distance, SpatialContext ctx)ShapeBufferedLineString. getBuffered(double distance, SpatialContext ctx)CircleCircleImpl. getBuffered(double distance, SpatialContext ctx)CirclePointImpl. getBuffered(double distance, SpatialContext ctx)RectangleRectangleImpl. getBuffered(double distance, SpatialContext ctx)Constructors in org.locationtech.spatial4j.shape.impl with parameters of type SpatialContext Constructor Description BBoxCalculator(SpatialContext ctx)BufferedLine(Point pA, Point pB, double buf, SpatialContext ctx)Creates a buffered line from pA to pB.BufferedLineString(List<Point> points, double buf, boolean expandBufForLongitudeSkew, SpatialContext ctx)BufferedLineString(List<Point> points, double buf, SpatialContext ctx)Needs at least 1 point, usually more than that.CircleImpl(Point p, double radiusDEG, SpatialContext ctx)GeoCircle(Point p, double radiusDEG, SpatialContext ctx)PointImpl(double x, double y, SpatialContext ctx)A simple constructor without normalization / validation.RectangleImpl(double minX, double maxX, double minY, double maxY, SpatialContext ctx)A simple constructor without normalization / validation.RectangleImpl(Point lowerLeft, Point upperRight, SpatialContext ctx)A convenience constructor which pulls out the coordinates.RectangleImpl(Rectangle r, SpatialContext ctx)Copy constructor.ShapeFactoryImpl(SpatialContext ctx, SpatialContextFactory factory) -
Uses of SpatialContext in org.locationtech.spatial4j.shape.jts
Methods in org.locationtech.spatial4j.shape.jts with parameters of type SpatialContext Modifier and Type Method Description doubleJtsGeometry. getArea(SpatialContext ctx)doubleJtsPoint. getArea(SpatialContext ctx)JtsGeometryJtsGeometry. getBuffered(double distance, SpatialContext ctx)CircleJtsPoint. getBuffered(double distance, SpatialContext ctx)
-