Uses of Interface
org.locationtech.spatial4j.shape.Shape
Packages that use Shape
Package
Description
This is the base package for Spatial4j from which the rest of it is organized.
SpatialContext implementations are the facade to the Spatial4j API.
Reading & writing shapes in various forms.
Optional support to read/write Shapes and Geometry using Jackson
Shapes are the core geometry objects that Spatial4j provides.
-
Uses of Shape in org.locationtech.spatial4j
Methods in org.locationtech.spatial4j with parameters of type Shape -
Uses of Shape in org.locationtech.spatial4j.context
Methods in org.locationtech.spatial4j.context with type parameters of type ShapeModifier and TypeMethodDescription<S extends Shape>
ShapeCollection<S> SpatialContext.makeCollection(List<S> coll) Deprecated.Methods in org.locationtech.spatial4j.context that return ShapeModifier and TypeMethodDescriptionSpatialContext.makeBufferedLineString(List<Point> points, double buf) Deprecated.SpatialContext.makeLineString(List<Point> points) Deprecated.Deprecated.SpatialContext.readShapeFromWkt(String wkt) Deprecated.Methods in org.locationtech.spatial4j.context with parameters of type Shape -
Uses of Shape in org.locationtech.spatial4j.context.jts
Methods in org.locationtech.spatial4j.context.jts that return ShapeModifier and TypeMethodDescriptionJtsSpatialContext.makeShapeFromGeometry(org.locationtech.jts.geom.Geometry geom) Deprecated.Methods in org.locationtech.spatial4j.context.jts with parameters of type ShapeModifier and TypeMethodDescriptionorg.locationtech.jts.geom.GeometryJtsSpatialContext.getGeometryFrom(Shape shape) Deprecated. -
Uses of Shape in org.locationtech.spatial4j.io
Methods in org.locationtech.spatial4j.io that return ShapeModifier and TypeMethodDescriptionParses 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.WKTReader.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().final ShapeDeprecated.Deprecated.final ShapeRead aShapefrom the reader.GeoJSONReader.readIfSupported(Object value) LegacyShapeReader.readIfSupported(Object value) Deprecated.PolyshapeReader.readIfSupported(Object value) ShapeReader.readIfSupported(Object value) WKTReader.readIfSupported(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) protected ShapeGeoJSONReader.readShape(org.noggit.JSONParser parser) protected ShapeBinaryCodec.readShapeByTypeIfSupported(DataInput dataInput, byte type) protected ShapeGeoJSONReader.readShapeFromCoordinates(String type, org.noggit.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 ShapeModifier and TypeMethodDescriptionDeprecated.Write a shape to Stringprotected byteBinaryCodec.typeForShape(Shape s) voidvoidDeprecated.voidvoidPolyshapeWriter.write(PolyshapeWriter.Encoder enc, Shape shape) voidWrite a shape to the output writervoidvoidBinaryCodec.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.jackson
Methods in org.locationtech.spatial4j.io.jackson that return ShapeModifier and TypeMethodDescriptionShapeDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) ShapeDeserializer.read(com.fasterxml.jackson.core.JsonParser jp, ShapeFactory factory) ShapeDeserializer.read(com.fasterxml.jackson.databind.node.ObjectNode node, ShapeFactory factory) Methods in org.locationtech.spatial4j.io.jackson with parameters of type ShapeModifier and TypeMethodDescriptionvoidShapeAsGeoJSONSerializer.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) void -
Uses of Shape in org.locationtech.spatial4j.io.jts
Methods in org.locationtech.spatial4j.io.jts that return ShapeModifier and TypeMethodDescriptionJtsWKTReaderShapeParser.parseIfSupported(String wktString) Deprecated.protected ShapeJtsWKTReaderShapeParser.parseIfSupported(String str, org.locationtech.jts.io.WKTReader reader) Deprecated.Reads WKT from thestrvia JTS'sWKTReader.JtsBinaryCodec.readJtsGeom(DataInput dataInput) protected ShapeJtsBinaryCodec.readShapeByTypeIfSupported(DataInput dataInput, byte type) Methods in org.locationtech.spatial4j.io.jts with parameters of type ShapeModifier and TypeMethodDescriptionprotected byteJtsBinaryCodec.typeForShape(Shape s) voidvoidJtsPolyshapeWriter.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 ShapeModifier and TypeClassDescriptionclassShapeCollection<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.shapeModifier and TypeInterfaceDescriptioninterfaceA circle, also known as a point-radius since that is what it is comprised of.interfaceA Point with X & Y coordinates.interfaceA rectangle aligned with the axis (i.e.Classes in org.locationtech.spatial4j.shape that implement ShapeModifier and TypeClassDescriptionclassBaseShape<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 ShapeModifier and TypeMethodDescription<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 ShapeModifier and TypeMethodDescriptionShapeFactory.LineStringBuilder.build()ShapeFactory.MultiLineStringBuilder.build()ShapeFactory.MultiPointBuilder.build()ShapeFactory.MultiPolygonBuilder.build()ShapeFactory.MultiShapeBuilder.build()ShapeFactory.PolygonBuilder.build()Builds the polygon and renders this builder instance invalid.ShapeFactory.PolygonBuilder.buildOrRect()Shape.getBuffered(double distance, SpatialContext ctx) Returns a buffered version of this shape.ShapeFactory.lineString(List<Point> points, double buf) Deprecated.Methods in org.locationtech.spatial4j.shape with parameters of type ShapeModifier and TypeMethodDescriptionDescribe the relationship between the two objects.Method parameters in org.locationtech.spatial4j.shape with type arguments of type ShapeModifier and TypeMethodDescriptionprotected 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 ShapeModifier and TypeClassDescriptionprotected classClasses in org.locationtech.spatial4j.shape.impl that implement ShapeModifier and TypeClassDescriptionclassINTERNAL: A line between two points with a buffer distance extending in every direction.classA BufferedLineString is a collection ofBufferedLineshapes, resulting in what some call a "Track" or "Polyline" (ESRI terminology).classA circle, also known as a point-radius, based on aDistanceCalculatorwhich does all the work.classA circle as it exists on the surface of a sphere.classA basic 2D implementation of a Point.classA simple Rectangle implementation that also supports a longitudinal wrap-around.Fields in org.locationtech.spatial4j.shape.impl with type parameters of type ShapeMethods in org.locationtech.spatial4j.shape.impl with type parameters of type ShapeModifier and TypeMethodDescription<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 ShapeModifier and TypeMethodDescriptionShapeFactoryImpl.GeneralShapeMultiShapeBuilder.build()BufferedLine.getBuffered(double distance, SpatialContext ctx) BufferedLineString.getBuffered(double distance, SpatialContext ctx) ShapeFactoryImpl.lineString(List<Point> points, double buf) Methods in org.locationtech.spatial4j.shape.impl with parameters of type ShapeModifier and TypeMethodDescription -
Uses of Shape in org.locationtech.spatial4j.shape.jts
Classes in org.locationtech.spatial4j.shape.jts with type parameters of type ShapeModifier and TypeClassDescriptionprivate classJtsShapeFactory.JtsMultiShapeBuilder<T extends Shape>Classes in org.locationtech.spatial4j.shape.jts that implement ShapeModifier and TypeClassDescriptionclassWraps a JTSGeometry(i.e.classWraps aPoint.Methods in org.locationtech.spatial4j.shape.jts with type parameters of type ShapeModifier and TypeMethodDescription<T extends Shape>
ShapeFactory.MultiShapeBuilder<T> JtsShapeFactory.multiShape(Class<T> shapeClass) Methods in org.locationtech.spatial4j.shape.jts that return ShapeModifier and TypeMethodDescriptionJtsShapeFactory.JtsLineStringBuilder.build()JtsShapeFactory.JtsMultiLineStringBuilder.build()JtsShapeFactory.JtsMultiPointBuilder.build()JtsShapeFactory.JtsMultiPolygonBuilder.build()JtsShapeFactory.JtsMultiShapeBuilder.build()JtsShapeFactory.JtsPolygonBuilder.build()JtsShapeFactory.JtsPolygonBuilder.buildOrRect()JtsShapeFactory.lineString(List<Point> points, double bufferDistance) JtsShapeFactory.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 ShapeModifier and TypeMethodDescriptionorg.locationtech.jts.geom.GeometryJtsShapeFactory.getGeometryFrom(Shape shape) Gets a JTSGeometryfor the givenShape.