public class OShapeFactory extends OComplexShapeBuilder
Modifier and Type | Field and Description |
---|---|
static OShapeFactory |
INSTANCE |
protected OShapeOperation |
operation |
BASE_CLASS, COORDINATES, GEOMETRY_FACTORY, SHAPE_FACTORY, SPATIAL_CONTEXT
Modifier | Constructor and Description |
---|---|
protected |
OShapeFactory() |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBinary(Object obj) |
String |
asText(Object obj) |
String |
asText(ODocument document) |
org.locationtech.spatial4j.shape.Shape |
fromDoc(ODocument document) |
org.locationtech.spatial4j.shape.Shape |
fromMapGeoJson(Map geoJsonMap) |
org.locationtech.spatial4j.shape.Shape |
fromObject(Object obj) |
String |
getName() |
OShapeType |
getType() |
void |
initClazz(ODatabaseInternal db) |
OShapeOperation |
operation() |
void |
registerFactory(OShapeBuilder factory) |
ODocument |
toDoc(org.locationtech.jts.geom.Geometry geometry) |
ODocument |
toDoc(org.locationtech.spatial4j.shape.Shape shape) |
org.locationtech.jts.geom.Geometry |
toGeometry(org.locationtech.spatial4j.shape.Shape shape) |
coordinatesFromLineString, createLineString, createMultiLine, createMultiPoint, createMultiPolygon, isMultiLine, isMultiPoint, isMultiPolygon, isPoint, isPolygon
asBinary, asGeoJson, asGeoJson, asText, asText, buffer, context, fromGeoJson, fromText, getSRID, superClass, toDoc, toShape, validate
public static final OShapeFactory INSTANCE
protected OShapeOperation operation
public String getName()
getName
in class OShapeBuilder
public OShapeType getType()
getType
in class OShapeBuilder
public void initClazz(ODatabaseInternal db)
initClazz
in class OShapeBuilder
public org.locationtech.spatial4j.shape.Shape fromDoc(ODocument document)
fromDoc
in class OShapeBuilder
public org.locationtech.spatial4j.shape.Shape fromObject(Object obj)
fromObject
in class OShapeBuilder
public String asText(ODocument document)
asText
in class OShapeBuilder
public String asText(Object obj)
asText
in class OShapeBuilder
public byte[] asBinary(Object obj)
public ODocument toDoc(org.locationtech.spatial4j.shape.Shape shape)
toDoc
in class OShapeBuilder
public org.locationtech.spatial4j.shape.Shape fromMapGeoJson(Map geoJsonMap)
fromMapGeoJson
in class OShapeBuilder
public org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.spatial4j.shape.Shape shape)
public ODocument toDoc(org.locationtech.jts.geom.Geometry geometry)
public OShapeOperation operation()
public void registerFactory(OShapeBuilder factory)
Copyright © 2009–2020 OrientDB. All rights reserved.