Uses of Interface
com.spatial4j.core.shape.Shape
-
Packages that use Shape Package Description com.spatial4j.core This is the base package for Spatial4j from which the rest of it is organized.com.spatial4j.core.context SpatialContext implementations are the facade to the Spatial4j API.com.spatial4j.core.context.jts com.spatial4j.core.io Reading & writing shapes in various forms.com.spatial4j.core.io.jts com.spatial4j.core.shape Shapes are the core geometry objects that Spatial4j provides.com.spatial4j.core.shape.impl com.spatial4j.core.shape.jts -
-
Uses of Shape in com.spatial4j.core
Methods in com.spatial4j.core 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 com.spatial4j.core.context
Methods in com.spatial4j.core.context with type parameters of type Shape Modifier and Type Method Description <S extends Shape>
ShapeCollection<S>SpatialContext. makeCollection(List<S> coll)Construct a ShapeCollection, analogous to an OGC GeometryCollection.Methods in com.spatial4j.core.context that return Shape Modifier and Type Method Description ShapeSpatialContext. makeBufferedLineString(List<Point> points, double buf)Constructs a buffered line string.ShapeSpatialContext. makeLineString(List<Point> points)Constructs a line string.ShapeSpatialContext. readShape(String value)Deprecated.ShapeSpatialContext. readShapeFromWkt(String wkt)Deprecated.Methods in com.spatial4j.core.context with parameters of type Shape Modifier and Type Method Description StringSpatialContext. toString(Shape shape)Deprecated. -
Uses of Shape in com.spatial4j.core.context.jts
Methods in com.spatial4j.core.context.jts that return Shape Modifier and Type Method Description ShapeJtsSpatialContext. makeLineString(List<Point> points)ShapeJtsSpatialContext. makeShapeFromGeometry(com.vividsolutions.jts.geom.Geometry geom)INTERNAL Usually creates a JtsGeometry, potentially validating, repairing, and indexing ("preparing").Methods in com.spatial4j.core.context.jts with parameters of type Shape Modifier and Type Method Description com.vividsolutions.jts.geom.GeometryJtsSpatialContext. getGeometryFrom(Shape shape)Gets a JTSGeometryfor the givenShape.StringJtsSpatialContext. toString(Shape shape) -
Uses of Shape in com.spatial4j.core.io
Methods in com.spatial4j.core.io that return Shape Modifier and Type Method Description protected ShapePolyshapeReader. makeCollection(List<? extends Shape> shapes)Subclass may try to make multiple points into a MultiPointprotected ShapeGeoJSONReader. makeShapeFromCoords(String type, List coords)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. 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. 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(org.noggit.JSONParser parser)protected ShapeGeoJSONReader. readPoint(org.noggit.JSONParser parser)protected ShapeGeoJSONReader. readPolygon(org.noggit.JSONParser parser)This method takes a polygon and makes a bbox from it NOTE: not currently used! polygon is currently implemented in:GeoJSONReader.makeShapeFromCoords(String, List)We could add a 'strict' or 'leinent' mode that would try the best it canprotected ShapePolyshapeReader. readPolygon(PolyshapeReader.XReader reader)ShapeBinaryCodec. readShape(DataInput dataInput)ShapeGeoJSONReader. readShape(org.noggit.JSONParser parser)protected ShapeBinaryCodec. readShapeByTypeIfSupported(DataInput dataInput, byte type)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 com.spatial4j.core.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(PolyshapeWriter.Encoder enc, Shape shape)voidPolyshapeWriter. write(Writer output, 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 by#readShapeOrNull(String, com.spatial4j.core.context.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)Method parameters in com.spatial4j.core.io with type arguments of type Shape Modifier and Type Method Description protected ShapePolyshapeReader. makeCollection(List<? extends Shape> shapes)Subclass may try to make multiple points into a MultiPoint -
Uses of Shape in com.spatial4j.core.io.jts
Methods in com.spatial4j.core.io.jts that return Shape Modifier and Type Method Description protected ShapeJtsPolyshapeReader. makeCollection(List<? extends Shape> shapes)protected ShapeJtsGeoJSONReader. makeShapeFromCoords(String type, List coords)ShapeJtsWKTReaderShapeParser. parseIfSupported(String wktString)protected ShapeJtsWKTReaderShapeParser. parseIfSupported(String str, com.vividsolutions.jts.io.WKTReader reader)Reads WKT from thestrvia JTS'sWKTReader.protected ShapeJtsWKTReader. parseLineStringShape(WKTReader.State state)BypassesJtsSpatialContext.makeLineString(java.util.List)so that we can more efficiently get the LineString without creating aList<Point>.protected ShapeJtsWKTReader. parseMulitPolygonShape(WKTReader.State state)Parses a MULTIPOLYGON shape from the raw string.protected ShapeJtsWKTReader. parsePolygonShape(WKTReader.State state)Parses a POLYGON shape from the raw string.protected ShapeJtsWKTReader. parseShapeByType(WKTReader.State state, String shapeType)ShapeJtsBinaryCodec. readJtsGeom(DataInput dataInput)protected ShapeJtsGeoJSONReader. readPoint(org.noggit.JSONParser parser)protected ShapeJtsGeoJSONReader. readPolygon(org.noggit.JSONParser parser)protected ShapeJtsPolyshapeReader. readPolygon(PolyshapeReader.XReader reader)protected ShapeJtsBinaryCodec. readShapeByTypeIfSupported(DataInput dataInput, byte type)Methods in com.spatial4j.core.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)Method parameters in com.spatial4j.core.io.jts with type arguments of type Shape Modifier and Type Method Description protected ShapeJtsPolyshapeReader. makeCollection(List<? extends Shape> shapes) -
Uses of Shape in com.spatial4j.core.shape
Classes in com.spatial4j.core.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.Subinterfaces of Shape in com.spatial4j.core.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 com.spatial4j.core.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 com.spatial4j.core.shape that return Shape Modifier and Type Method Description ShapeShape. getBuffered(double distance, SpatialContext ctx)Returns a buffered version of this shape.Methods in com.spatial4j.core.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 com.spatial4j.core.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 com.spatial4j.core.shape.impl
Classes in com.spatial4j.core.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.Methods in com.spatial4j.core.shape.impl that return Shape Modifier and Type Method Description ShapeBufferedLine. getBuffered(double distance, SpatialContext ctx)ShapeBufferedLineString. getBuffered(double distance, SpatialContext ctx)Methods in com.spatial4j.core.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 com.spatial4j.core.shape.jts
Classes in com.spatial4j.core.shape.jts that implement Shape Modifier and Type Class Description classJtsGeometryWraps a JTSGeometry(i.e.classJtsPointWraps aPoint.Methods in com.spatial4j.core.shape.jts with parameters of type Shape Modifier and Type Method Description SpatialRelationJtsGeometry. relate(Shape other)SpatialRelationJtsPoint. relate(Shape other)
-