Uses of Interface
org.locationtech.spatial4j.shape.Shape
-
Packages that use Shape Package Description org.locationtech.spatial4j This is the base package for Spatial4j from which the rest of it is organized.org.locationtech.spatial4j.context SpatialContext implementations are the facade to the Spatial4j API.org.locationtech.spatial4j.context.jts org.locationtech.spatial4j.io Reading & writing shapes in various forms.org.locationtech.spatial4j.io.jackson Optional support to read/write Shapes and Geometry using Jacksonorg.locationtech.spatial4j.io.jts org.locationtech.spatial4j.shape Shapes are the core geometry objects that Spatial4j provides.org.locationtech.spatial4j.shape.impl org.locationtech.spatial4j.shape.jts -
-
Uses of Shape in org.locationtech.spatial4j
Methods in org.locationtech.spatial4j with parameters of type Shape Modifier and Type Method Description abstract booleanSpatialPredicate. evaluate(Shape indexedShape, Shape queryShape)Returns whether the relationship between indexedShape and queryShape is satisfied by this operation. -
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(java.util.List<S> coll)Deprecated.Methods in org.locationtech.spatial4j.context that return Shape Modifier and Type Method Description ShapeSpatialContext. makeBufferedLineString(java.util.List<Point> points, double buf)Deprecated.ShapeSpatialContext. makeLineString(java.util.List<Point> points)Deprecated.ShapeSpatialContext. readShape(java.lang.String value)Deprecated.ShapeSpatialContext. readShapeFromWkt(java.lang.String wkt)Deprecated.Methods in org.locationtech.spatial4j.context with parameters of type Shape Modifier and Type Method Description java.lang.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(org.locationtech.jts.geom.Geometry geom)Deprecated.Methods in org.locationtech.spatial4j.context.jts with parameters of type Shape Modifier and Type Method Description org.locationtech.jts.geom.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(java.lang.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(java.lang.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, java.lang.String shapeType)(internal) Parses the remainder of a shape definition following the shape's name given asshapeTypealready consumed viaWKTReader.State.nextWord().ShapeGeoJSONReader. read(java.io.Reader reader)ShapeGeoJSONReader. read(java.lang.Object value)ShapeLegacyShapeReader. read(java.io.Reader reader)Deprecated.ShapeLegacyShapeReader. read(java.lang.Object value)Deprecated.ShapePolyshapeReader. read(java.io.Reader r)ShapePolyshapeReader. read(java.lang.Object value)ShapeShapeReader. read(java.io.Reader reader)Read aShapefrom the reader.ShapeShapeReader. read(java.lang.Object value)ShapeSupportedFormats. read(java.lang.String value)ShapeWKTReader. read(java.io.Reader reader)ShapeWKTReader. read(java.lang.Object value)ShapeGeoJSONReader. readIfSupported(java.lang.Object value)ShapeLegacyShapeReader. readIfSupported(java.lang.Object value)Deprecated.ShapePolyshapeReader. readIfSupported(java.lang.Object value)ShapeShapeReader. readIfSupported(java.lang.Object value)ShapeWKTReader. readIfSupported(java.lang.Object value)protected ShapeGeoJSONReader. readLineString(org.noggit.JSONParser parser)protected ShapeGeoJSONReader. readMultiLineString(org.noggit.JSONParser parser)protected ShapeGeoJSONReader. readMultiPoint(org.noggit.JSONParser parser)protected ShapeGeoJSONReader. readMultiPolygon(org.noggit.JSONParser parser)protected ShapeGeoJSONReader. readPoint(org.noggit.JSONParser parser)protected ShapePolyshapeReader. readPolygon(PolyshapeReader.XReader reader)ShapeBinaryCodec. readShape(java.io.DataInput dataInput)protected ShapeGeoJSONReader. readShape(org.noggit.JSONParser parser)protected ShapeBinaryCodec. readShapeByTypeIfSupported(java.io.DataInput dataInput, byte type)protected ShapeGeoJSONReader. readShapeFromCoordinates(java.lang.String type, org.noggit.JSONParser parser)static ShapeLegacyShapeReader. readShapeOrNull(java.lang.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 java.lang.StringGeoJSONWriter. toString(Shape shape)java.lang.StringLegacyShapeWriter. toString(Shape shape)Deprecated.java.lang.StringPolyshapeWriter. toString(Shape shape)java.lang.StringShapeWriter. toString(Shape shape)Write a shape to Stringjava.lang.StringWKTWriter. toString(Shape shape)protected byteBinaryCodec. typeForShape(Shape s)voidGeoJSONWriter. write(java.io.Writer output, Shape shape)voidLegacyShapeWriter. write(java.io.Writer output, Shape shape)Deprecated.voidPolyshapeWriter. write(java.io.Writer output, Shape shape)voidPolyshapeWriter. write(PolyshapeWriter.Encoder enc, Shape shape)voidShapeWriter. write(java.io.Writer output, Shape shape)Write a shape to the output writervoidWKTWriter. write(java.io.Writer output, Shape shape)voidBinaryCodec. writeShape(java.io.DataOutput dataOutput, Shape s)static java.lang.StringLegacyShapeWriter. writeShape(Shape shape)Deprecated.Writes a shape to a String, in a format that can be read byLegacyShapeReader.readShapeOrNull(String, SpatialContext)static java.lang.StringLegacyShapeWriter. writeShape(Shape shape, java.text.NumberFormat nf)Deprecated.Overloaded to provide a number format.protected booleanBinaryCodec. writeShapeByTypeIfSupported(java.io.DataOutput dataOutput, Shape s)Note: writes the type byte even if not supportedprotected booleanBinaryCodec. writeShapeByTypeIfSupported(java.io.DataOutput dataOutput, Shape s, byte type) -
Uses of Shape in org.locationtech.spatial4j.io.jackson
Methods in org.locationtech.spatial4j.io.jackson that return Shape Modifier and Type Method Description ShapeShapeDeserializer. deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)ShapeShapeDeserializer. read(com.fasterxml.jackson.core.JsonParser jp, ShapeFactory factory)ShapeShapeDeserializer. read(com.fasterxml.jackson.databind.node.ObjectNode node, ShapeFactory factory)Methods in org.locationtech.spatial4j.io.jackson with parameters of type Shape Modifier and Type Method Description voidShapeAsGeoJSONSerializer. serialize(Shape shape, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)voidShapeAsWKTSerializer. serialize(Shape value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers)voidShapeAsGeoJSONSerializer. write(com.fasterxml.jackson.core.JsonGenerator gen, Shape shape) -
Uses of Shape in org.locationtech.spatial4j.io.jts
Methods in org.locationtech.spatial4j.io.jts that return Shape Modifier and Type Method Description ShapeJtsWKTReaderShapeParser. parseIfSupported(java.lang.String wktString)Deprecated.protected ShapeJtsWKTReaderShapeParser. parseIfSupported(java.lang.String str, org.locationtech.jts.io.WKTReader reader)Deprecated.Reads WKT from thestrvia JTS'sWKTReader.ShapeJtsBinaryCodec. readJtsGeom(java.io.DataInput dataInput)protected ShapeJtsBinaryCodec. readShapeByTypeIfSupported(java.io.DataInput dataInput, byte type)Methods in org.locationtech.spatial4j.io.jts with parameters of type Shape Modifier and Type Method Description java.lang.StringJtsWKTWriter. toString(Shape shape)protected byteJtsBinaryCodec. typeForShape(Shape s)voidJtsGeoJSONWriter. write(java.io.Writer output, Shape shape)voidJtsPolyshapeWriter. write(PolyshapeWriter.Encoder enc, Shape shape)voidJtsBinaryCodec. writeJtsGeom(java.io.DataOutput dataOutput, Shape s)protected booleanJtsBinaryCodec. writeShapeByTypeIfSupported(java.io.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(java.lang.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(java.util.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(java.util.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(java.util.Collection<? extends Shape> shapes, SpatialContext ctx)protected static booleanShapeCollection. computeMutualDisjoint(java.util.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 java.util.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(java.lang.Class<T> shapeClass)<S extends Shape>
ShapeCollection<S>ShapeFactoryImpl. multiShape(java.util.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(java.util.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 with type parameters of type Shape Modifier and Type Class Description private classJtsShapeFactory.JtsMultiShapeBuilder<T extends Shape>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(java.lang.Class<T> shapeClass)Methods in org.locationtech.spatial4j.shape.jts that return Shape Modifier and Type Method Description ShapeJtsShapeFactory.JtsLineStringBuilder. build()ShapeJtsShapeFactory.JtsMultiLineStringBuilder. build()ShapeJtsShapeFactory.JtsMultiPointBuilder. build()ShapeJtsShapeFactory.JtsMultiPolygonBuilder. build()ShapeJtsShapeFactory.JtsMultiShapeBuilder. build()ShapeJtsShapeFactory.JtsPolygonBuilder. build()ShapeJtsShapeFactory.JtsPolygonBuilder. buildOrRect()ShapeJtsShapeFactory. lineString(java.util.List<Point> points, double bufferDistance)ShapeJtsShapeFactory. makeShapeFromGeometry(org.locationtech.jts.geom.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 org.locationtech.jts.geom.GeometryJtsShapeFactory. getGeometryFrom(Shape shape)Gets a JTSGeometryfor the givenShape.SpatialRelationJtsGeometry. relate(Shape other)SpatialRelationJtsPoint. relate(Shape other)
-