Class OShapeBuilder<T extends org.locationtech.spatial4j.shape.Shape>
java.lang.Object
com.orientechnologies.spatial.shape.OShapeBuilder<T>
- Direct Known Subclasses:
OComplexShapeBuilder,OPointShapeBuilder,ORectangleShapeBuilder
public abstract class OShapeBuilder<T extends org.locationtech.spatial4j.shape.Shape>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected static final org.locationtech.jts.geom.GeometryFactoryprotected static final org.locationtech.spatial4j.shape.jts.JtsShapeFactoryprotected static final org.locationtech.spatial4j.context.jts.JtsSpatialContextprotected static final org.locationtech.jts.io.WKTReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]org.locationtech.spatial4j.shape.Shapeorg.locationtech.spatial4j.context.SpatialContextcontext()format(double value) abstract TfromGeoJson(String geoJson) fromMapGeoJson(Map<String, Object> geoJsonMap) fromObject(Object obj) abstract StringgetName()intgetSRID(org.locationtech.spatial4j.shape.Shape shape) abstract OShapeTypegetType()abstract voidprotected OClassabstract ODocumentprotected ODocumentorg.locationtech.spatial4j.shape.jts.JtsGeometrytoShape(org.locationtech.jts.geom.Geometry geometry) void
-
Field Details
-
COORDINATES
- See Also:
-
BASE_CLASS
- See Also:
-
SPATIAL_CONTEXT
protected static final org.locationtech.spatial4j.context.jts.JtsSpatialContext SPATIAL_CONTEXT -
GEOMETRY_FACTORY
protected static final org.locationtech.jts.geom.GeometryFactory GEOMETRY_FACTORY -
SHAPE_FACTORY
protected static final org.locationtech.spatial4j.shape.jts.JtsShapeFactory SHAPE_FACTORY -
wktReader
protected static final org.locationtech.jts.io.WKTReader wktReader
-
-
Constructor Details
-
OShapeBuilder
public OShapeBuilder()
-
-
Method Details
-
format
-
getName
-
getType
-
fromDoc
-
fromObject
-
fromMapGeoJson
-
initClazz
-
asText
-
asBinary
-
asText
-
asText
-
asText
-
asGeoJson
-
asGeoJson
-
fromGeoJson
- Throws:
IOExceptionParseException
-
validate
-
toShape
public org.locationtech.spatial4j.shape.jts.JtsGeometry toShape(org.locationtech.jts.geom.Geometry geometry) -
superClass
-
fromText
- Throws:
ParseExceptionorg.locationtech.jts.io.ParseException
-
toDoc
-
toDoc
-
toDoc
- Throws:
ParseExceptionorg.locationtech.jts.io.ParseException
-
getSRID
public int getSRID(org.locationtech.spatial4j.shape.Shape shape) -
buffer
-
context
public org.locationtech.spatial4j.context.SpatialContext context()
-