Uses of Interface
org.locationtech.spatial4j.shape.Shape
-
-
Uses of Shape in org.apache.lucene.spatial
Methods in org.apache.lucene.spatial with parameters of type Shape Modifier and Type Method Description abstract Field[]SpatialStrategy. createIndexableFields(Shape shape)Returns the IndexableField(s) from theshapethat are to be added to theDocument.DoubleValuesSourceSpatialStrategy. makeRecipDistanceValueSource(Shape queryShape)Returns a ValueSource with values ranging from 1 to 0, depending inversely on the distance fromSpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point,double). -
Uses of Shape in org.apache.lucene.spatial.prefix
Fields in org.apache.lucene.spatial.prefix declared as Shape Modifier and Type Field Description protected ShapeAbstractPrefixTreeQuery. queryShapeMethods in org.apache.lucene.spatial.prefix that return Shape Modifier and Type Method Description protected ShapeWithinPrefixTreeQuery. bufferShape(Shape shape, double distErr)Returns a new shape that is larger than shape by at distErr.Methods in org.apache.lucene.spatial.prefix with parameters of type Shape Modifier and Type Method Description protected ShapeWithinPrefixTreeQuery. bufferShape(Shape shape, double distErr)Returns a new shape that is larger than shape by at distErr.static HeatmapFacetCounter.HeatmapHeatmapFacetCounter. calcFacets(PrefixTreeStrategy strategy, IndexReaderContext context, Bits topAcceptDocs, Shape inputShape, int facetLevel, int maxCells)Calculates spatial 2D facets (aggregated counts) in a grid, sometimes called a heatmap.HeatmapFacetCounter.HeatmapPrefixTreeStrategy. calcFacets(IndexReaderContext context, Bits topAcceptDocs, Shape inputShape, int facetLevel, int maxCells)Computes spatial facets in two dimensions as a grid of numbers.static voidPrefixTreeFacetCounter. compute(PrefixTreeStrategy strategy, IndexReaderContext context, Bits topAcceptDocs, Shape queryShape, int facetLevel, PrefixTreeFacetCounter.FacetVisitor facetVisitor)Computes facets using a callback/visitor style design, allowing flexibility for the caller to determine what to do with each underlying count.static voidPrefixTreeFacetCounter. compute(PrefixTreeStrategy strategy, LeafReaderContext context, Bits acceptDocs, Shape queryShape, int facetLevel, PrefixTreeFacetCounter.FacetVisitor facetVisitor)Lower-level per-leaf segment method.protected Iterator<Cell>PrefixTreeStrategy. createCellIteratorToIndex(Shape shape, int detailLevel, Iterator<Cell> reuse)protected Iterator<Cell>RecursivePrefixTreeStrategy. createCellIteratorToIndex(Shape shape, int detailLevel, Iterator<Cell> reuse)Field[]PrefixTreeStrategy. createIndexableFields(Shape shape)Field[]PrefixTreeStrategy. createIndexableFields(Shape shape, double distErr)TurnsSpatialPrefixTree.getTreeCellIterator(Shape, int)into aTokenStream.Field[]PrefixTreeStrategy. createIndexableFields(Shape shape, int detailLevel)protected booleanRecursivePrefixTreeStrategy. isGridAlignedShape(Shape shape)A quick check of the shape to see if it is perfectly aligned to a grid.protected booleanPrefixTreeStrategy. isPointShape(Shape shape)Returns true if theshapeis aPoint.protected QueryRecursivePrefixTreeStrategy. makeGridShapeIntersectsQuery(Shape gridShape)RecursivePrefixTreeStrategy.makeQuery(SpatialArgs)specialized for the query being a grid square.voidPrefixTreeStrategy.ShapeTokenStream. setShape(Shape shape)Constructors in org.apache.lucene.spatial.prefix with parameters of type Shape Constructor Description AbstractPrefixTreeQuery(Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel)AbstractVisitingPrefixTreeQuery(Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel)ContainsPrefixTreeQuery(Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, boolean multiOverlappingIndexedShapes)IntersectsPrefixTreeQuery(Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel)WithinPrefixTreeQuery(Shape queryShape, String fieldName, SpatialPrefixTree grid, int detailLevel, int prefixGridScanLevel, double queryBuffer) -
Uses of Shape in org.apache.lucene.spatial.prefix.tree
Fields in org.apache.lucene.spatial.prefix.tree declared as Shape Modifier and Type Field Description protected ShapeLegacyCell. shapeMethods in org.apache.lucene.spatial.prefix.tree that return Shape Modifier and Type Method Description ShapeS2ShapeFactory. getS2CellShape(S2CellId cellId)Factory method for S2 cell shapes.ShapeCell. getShape()Gets the shape for this cell; typically a Rectangle.ShapeQuadPrefixTree.QuadCell. getShape()Methods in org.apache.lucene.spatial.prefix.tree with parameters of type Shape Modifier and Type Method Description protected voidPackedQuadPrefixTree. buildNotRobustly(double x, double y, int level, List<Cell> matches, long term, Shape shape, int maxLevel)protected voidPackedQuadPrefixTree. checkBattenbergNotRobustly(byte quad, double cx, double cy, int level, List<Cell> matches, long term, Shape shape, int maxLevel)protected voidQuadPrefixTree. checkBattenbergNotRobustly(char c, double cx, double cy, int level, List<Cell> matches, BytesRef str, Shape shape, int maxLevel)CellIteratorCell. getNextLevelCells(Shape shapeFilter)Gets the cells at the next grid cell level underneath this one, optionally filtered byshapeFilter.CellIteratorLegacyCell. getNextLevelCells(Shape shapeFilter)CellIteratorPackedQuadPrefixTree. getTreeCellIterator(Shape shape, int detailLevel)CellIteratorS2PrefixTree. getTreeCellIterator(Shape shape, int detailLevel)CellIteratorSpatialPrefixTree. getTreeCellIterator(Shape shape, int detailLevel)Gets the intersecting cells for the specified shape, without exceeding detail level. -
Uses of Shape in org.apache.lucene.spatial.query
Methods in org.apache.lucene.spatial.query that return Shape Modifier and Type Method Description ShapeSpatialArgs. getShape()protected ShapeSpatialArgsParser. parseShape(String str, SpatialContext ctx)Methods in org.apache.lucene.spatial.query with parameters of type Shape Modifier and Type Method Description static doubleSpatialArgs. calcDistanceFromErrPct(Shape shape, double distErrPct, SpatialContext ctx)Computes the distance given a shape and thedistErrPct.abstract booleanSpatialOperation. evaluate(Shape indexedShape, Shape queryShape)Returns whether the relationship between indexedShape and queryShape is satisfied by this operation.protected SpatialArgsSpatialArgsParser. newSpatialArgs(SpatialOperation op, Shape shape)voidSpatialArgs. setShape(Shape shape)Constructors in org.apache.lucene.spatial.query with parameters of type Shape Constructor Description SpatialArgs(SpatialOperation operation, Shape shape) -
Uses of Shape in org.apache.lucene.spatial.util
Classes in org.apache.lucene.spatial.util with type parameters of type Shape Modifier and Type Class Description classShapeFieldCache<T extends Shape>Bounded Cache of Shapes associated with docIds.classShapeFieldCacheProvider<T extends Shape>Provides access to aShapeFieldCachefor a givenLeafReader. -
Uses of Shape in org.elasticsearch.common.geo
Classes in org.elasticsearch.common.geo with type parameters of type Shape Modifier and Type Class Description classXShapeCollection<S extends Shape>Extends spatial4j ShapeCollection for points_only shape indexing supportClasses in org.elasticsearch.common.geo that implement Shape Modifier and Type Class Description classXShapeCollection<S extends Shape>Extends spatial4j ShapeCollection for points_only shape indexing support -
Uses of Shape in org.elasticsearch.common.geo.builders
Classes in org.elasticsearch.common.geo.builders with type parameters of type Shape Modifier and Type Class Description classShapeBuilder<T extends Shape,G extends Geometry,E extends ShapeBuilder<T,G,E>>Basic class for building GeoJSON shapes like Polygons, Linestrings, etcMethods in org.elasticsearch.common.geo.builders that return Shape Modifier and Type Method Description ShapeGeometryCollectionBuilder. buildS4J()ShapeMultiPolygonBuilder. buildS4J() -
Uses of Shape in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper that return Shape Modifier and Type Method Description ShapeLegacyGeoShapeIndexer. prepareForIndexing(ShapeBuilder<?,?,?> shapeBuilder)Methods in org.elasticsearch.index.mapper that return types with arguments of type Shape Modifier and Type Method Description Class<Shape>LegacyGeoShapeIndexer. processedClass()Methods in org.elasticsearch.index.mapper with parameters of type Shape Modifier and Type Method Description List<IndexableField>LegacyGeoShapeIndexer. indexShape(ParseContext context, Shape shape) -
Uses of Shape in org.locationtech.spatial4j.context
Methods in org.locationtech.spatial4j.context with type parameters of type Shape Modifier and Type Method Description <S extends Shape>
ShapeCollection<S>SpatialContext. makeCollection(List<S> coll)Deprecated.Methods in org.locationtech.spatial4j.context that return Shape Modifier and Type Method Description ShapeSpatialContext. makeBufferedLineString(List<Point> points, double buf)Deprecated.ShapeSpatialContext. makeLineString(List<Point> points)Deprecated.ShapeSpatialContext. readShape(String value)Deprecated.ShapeSpatialContext. readShapeFromWkt(String wkt)Deprecated.Methods in org.locationtech.spatial4j.context with parameters of type Shape Modifier and Type Method Description StringSpatialContext. toString(Shape shape)Deprecated. -
Uses of Shape in org.locationtech.spatial4j.context.jts
Methods in org.locationtech.spatial4j.context.jts that return Shape Modifier and Type Method Description ShapeJtsSpatialContext. makeShapeFromGeometry(Geometry geom)Deprecated.Methods in org.locationtech.spatial4j.context.jts with parameters of type Shape Modifier and Type Method Description GeometryJtsSpatialContext. getGeometryFrom(Shape shape)Deprecated. -
Uses of Shape in org.locationtech.spatial4j.io
Methods in org.locationtech.spatial4j.io that return Shape Modifier and Type Method Description ShapeWKTReader. parse(String wktString)Parses the wktString, returning the defined Shape.protected ShapeWKTReader. parseBufferShape(WKTReader.State state)Parses the BUFFER operation applied to a parsed shape.protected ShapeWKTReader. parseEnvelopeShape(WKTReader.State state)Parses an ENVELOPE (aka Rectangle) shape from the raw string.protected ShapeWKTReader. parseGeometryCollectionShape(WKTReader.State state)Parses a GEOMETRYCOLLECTION shape from the raw string.ShapeWKTReader. parseIfSupported(String wktString)Parses the wktString, returning the defined Shape.protected ShapeWKTReader. parseLineStringShape(WKTReader.State state)Parses a LINESTRING shape from the raw string -- an ordered sequence of points.protected ShapeWKTReader. parseMulitPolygonShape(WKTReader.State state)Parses a MULTIPOLYGON shape from the raw string.protected ShapeWKTReader. parseMultiLineStringShape(WKTReader.State state)Parses a MULTILINESTRING shape from the raw string -- a collection of line strings.protected ShapeWKTReader. parseMultiPointShape(WKTReader.State state)Parses a MULTIPOINT shape from the raw string -- a collection of points.protected ShapeWKTReader. parsePointShape(WKTReader.State state)Parses a POINT shape from the raw string.protected ShapeWKTReader. parsePolygonShape(WKTReader.State state)Parses a POLYGON shape from the raw string.protected ShapeWKTReader. parseShapeByType(WKTReader.State state, String shapeType)(internal) Parses the remainder of a shape definition following the shape's name given asshapeTypealready consumed viaWKTReader.State.nextWord().ShapeGeoJSONReader. read(Reader reader)ShapeGeoJSONReader. read(Object value)ShapeLegacyShapeReader. read(Reader reader)Deprecated.ShapeLegacyShapeReader. read(Object value)Deprecated.ShapePolyshapeReader. read(Reader r)ShapePolyshapeReader. read(Object value)ShapeShapeReader. read(Reader reader)Read aShapefrom the reader.ShapeShapeReader. read(Object value)ShapeSupportedFormats. read(String value)ShapeWKTReader. read(Reader reader)ShapeWKTReader. read(Object value)ShapeGeoJSONReader. readIfSupported(Object value)ShapeLegacyShapeReader. readIfSupported(Object value)Deprecated.ShapePolyshapeReader. readIfSupported(Object value)ShapeShapeReader. readIfSupported(Object value)ShapeWKTReader. readIfSupported(Object value)protected ShapeGeoJSONReader. readLineString(JSONParser parser)protected ShapeGeoJSONReader. readMultiLineString(JSONParser parser)protected ShapeGeoJSONReader. readMultiPoint(JSONParser parser)protected ShapeGeoJSONReader. readMultiPolygon(JSONParser parser)protected ShapeGeoJSONReader. readPoint(JSONParser parser)protected ShapePolyshapeReader. readPolygon(PolyshapeReader.XReader reader)ShapeBinaryCodec. readShape(DataInput dataInput)protected ShapeGeoJSONReader. readShape(JSONParser parser)protected ShapeBinaryCodec. readShapeByTypeIfSupported(DataInput dataInput, byte type)protected ShapeGeoJSONReader. readShapeFromCoordinates(String type, JSONParser parser)static ShapeLegacyShapeReader. readShapeOrNull(String str, SpatialContext ctx)Deprecated.Reads the shape specification as defined in the class javadocs.protected ShapeWKTReader. shape(WKTReader.State state)Reads a shape from the current position, starting with the name of the shape.Methods in org.locationtech.spatial4j.io with parameters of type Shape Modifier and Type Method Description StringGeoJSONWriter. toString(Shape shape)StringLegacyShapeWriter. toString(Shape shape)Deprecated.StringPolyshapeWriter. toString(Shape shape)StringShapeWriter. toString(Shape shape)Write a shape to StringStringWKTWriter. toString(Shape shape)protected byteBinaryCodec. typeForShape(Shape s)voidGeoJSONWriter. write(Writer output, Shape shape)voidLegacyShapeWriter. write(Writer output, Shape shape)Deprecated.voidPolyshapeWriter. write(Writer output, Shape shape)voidPolyshapeWriter. write(PolyshapeWriter.Encoder enc, Shape shape)voidShapeWriter. write(Writer output, Shape shape)Write a shape to the output writervoidWKTWriter. write(Writer output, Shape shape)voidBinaryCodec. writeShape(DataOutput dataOutput, Shape s)static StringLegacyShapeWriter. writeShape(Shape shape)Deprecated.Writes a shape to a String, in a format that can be read byLegacyShapeReader.readShapeOrNull(String, SpatialContext)static StringLegacyShapeWriter. writeShape(Shape shape, NumberFormat nf)Deprecated.Overloaded to provide a number format.protected booleanBinaryCodec. writeShapeByTypeIfSupported(DataOutput dataOutput, Shape s)Note: writes the type byte even if not supportedprotected booleanBinaryCodec. writeShapeByTypeIfSupported(DataOutput dataOutput, Shape s, byte type) -
Uses of Shape in org.locationtech.spatial4j.io.jts
Methods in org.locationtech.spatial4j.io.jts that return Shape Modifier and Type Method Description ShapeJtsBinaryCodec. readJtsGeom(DataInput dataInput)protected ShapeJtsBinaryCodec. readShapeByTypeIfSupported(DataInput dataInput, byte type)Methods in org.locationtech.spatial4j.io.jts with parameters of type Shape Modifier and Type Method Description StringJtsWKTWriter. toString(Shape shape)protected byteJtsBinaryCodec. typeForShape(Shape s)voidJtsGeoJSONWriter. write(Writer output, Shape shape)voidJtsPolyshapeWriter. write(PolyshapeWriter.Encoder enc, Shape shape)voidJtsBinaryCodec. writeJtsGeom(DataOutput dataOutput, Shape s)protected booleanJtsBinaryCodec. writeShapeByTypeIfSupported(DataOutput dataOutput, Shape s, byte type) -
Uses of Shape in org.locationtech.spatial4j.shape
Classes in org.locationtech.spatial4j.shape with type parameters of type Shape Modifier and Type Class Description classShapeCollection<S extends Shape>A collection of Shape objects, analogous to an OGC GeometryCollection.static interfaceShapeFactory.MultiShapeBuilder<T extends Shape>Subinterfaces of Shape in org.locationtech.spatial4j.shape Modifier and Type Interface Description interfaceCircleA circle, also known as a point-radius since that is what it is comprised of.interfacePointA Point with X & Y coordinates.interfaceRectangleA rectangle aligned with the axis (i.e.Classes in org.locationtech.spatial4j.shape that implement Shape Modifier and Type Class Description classBaseShape<T extends SpatialContext>classShapeCollection<S extends Shape>A collection of Shape objects, analogous to an OGC GeometryCollection.Methods in org.locationtech.spatial4j.shape with type parameters of type Shape Modifier and Type Method Description <T extends Shape>
ShapeFactory.MultiShapeBuilder<T>ShapeFactory. multiShape(Class<T> shapeClass)(Builder) Constructs a Shape aggregate in which each component/member is an instance of the specified class.<S extends Shape>
ShapeCollection<S>ShapeFactory. multiShape(List<S> coll)Deprecated.Methods in org.locationtech.spatial4j.shape that return Shape Modifier and Type Method Description ShapeShapeFactory.LineStringBuilder. build()ShapeShapeFactory.MultiLineStringBuilder. build()ShapeShapeFactory.MultiPointBuilder. build()ShapeShapeFactory.MultiPolygonBuilder. build()ShapeShapeFactory.MultiShapeBuilder. build()ShapeShapeFactory.PolygonBuilder. build()Builds the polygon and renders this builder instance invalid.ShapeShapeFactory.PolygonBuilder. buildOrRect()ShapeShape. getBuffered(double distance, SpatialContext ctx)Returns a buffered version of this shape.ShapeShapeFactory. lineString(List<Point> points, double buf)Deprecated.Methods in org.locationtech.spatial4j.shape with parameters of type Shape Modifier and Type Method Description SpatialRelationShape. relate(Shape other)Describe the relationship between the two objects.SpatialRelationShapeCollection. relate(Shape other)Method parameters in org.locationtech.spatial4j.shape with type arguments of type Shape Modifier and Type Method Description protected RectangleShapeCollection. computeBoundingBox(Collection<? extends Shape> shapes, SpatialContext ctx)protected static booleanShapeCollection. computeMutualDisjoint(List<? extends Shape> shapes)Computes whether the shapes are mutually disjoint. -
Uses of Shape in org.locationtech.spatial4j.shape.impl
Classes in org.locationtech.spatial4j.shape.impl with type parameters of type Shape Modifier and Type Class Description protected classShapeFactoryImpl.GeneralShapeMultiShapeBuilder<T extends Shape>Classes in org.locationtech.spatial4j.shape.impl that implement Shape Modifier and Type Class Description classBufferedLineINTERNAL: A line between two points with a buffer distance extending in every direction.classBufferedLineStringA BufferedLineString is a collection ofBufferedLineshapes, resulting in what some call a "Track" or "Polyline" (ESRI terminology).classCircleImplA circle, also known as a point-radius, based on aDistanceCalculatorwhich does all the work.classGeoCircleA circle as it exists on the surface of a sphere.classPointImplA basic 2D implementation of a Point.classRectangleImplA simple Rectangle implementation that also supports a longitudinal wrap-around.Fields in org.locationtech.spatial4j.shape.impl with type parameters of type Shape Modifier and Type Field Description protected List<Shape>ShapeFactoryImpl.GeneralShapeMultiShapeBuilder. shapesMethods in org.locationtech.spatial4j.shape.impl with type parameters of type Shape Modifier and Type Method Description <T extends Shape>
ShapeFactory.MultiShapeBuilder<T>ShapeFactoryImpl. multiShape(Class<T> shapeClass)<S extends Shape>
ShapeCollection<S>ShapeFactoryImpl. multiShape(List<S> coll)Methods in org.locationtech.spatial4j.shape.impl that return Shape Modifier and Type Method Description ShapeShapeFactoryImpl.GeneralShapeMultiShapeBuilder. build()ShapeBufferedLine. getBuffered(double distance, SpatialContext ctx)ShapeBufferedLineString. getBuffered(double distance, SpatialContext ctx)ShapeShapeFactoryImpl. lineString(List<Point> points, double buf)Methods in org.locationtech.spatial4j.shape.impl with parameters of type Shape Modifier and Type Method Description SpatialRelationBufferedLine. relate(Shape other)SpatialRelationBufferedLineString. relate(Shape other)SpatialRelationCircleImpl. relate(Shape other)SpatialRelationPointImpl. relate(Shape other)SpatialRelationRectangleImpl. relate(Shape other) -
Uses of Shape in org.locationtech.spatial4j.shape.jts
Classes in org.locationtech.spatial4j.shape.jts that implement Shape Modifier and Type Class Description classJtsGeometryWraps a JTSGeometry(i.e.classJtsPointWraps aPoint.Methods in org.locationtech.spatial4j.shape.jts with type parameters of type Shape Modifier and Type Method Description <T extends Shape>
ShapeFactory.MultiShapeBuilder<T>JtsShapeFactory. multiShape(Class<T> shapeClass)Methods in org.locationtech.spatial4j.shape.jts that return Shape Modifier and Type Method Description ShapeJtsShapeFactory. lineString(List<Point> points, double bufferDistance)ShapeJtsShapeFactory. makeShapeFromGeometry(Geometry geom)INTERNAL Usually creates a JtsGeometry, potentially validating, repairing, and indexing ("preparing").Methods in org.locationtech.spatial4j.shape.jts with parameters of type Shape Modifier and Type Method Description GeometryJtsShapeFactory. getGeometryFrom(Shape shape)SpatialRelationJtsGeometry. relate(Shape other)SpatialRelationJtsPoint. relate(Shape other)
-