public abstract class OShapeBuilder<T extends org.locationtech.spatial4j.shape.Shape> extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE_CLASS |
static String |
COORDINATES |
protected static org.locationtech.jts.geom.GeometryFactory |
GEOMETRY_FACTORY |
protected static org.locationtech.spatial4j.shape.jts.JtsShapeFactory |
SHAPE_FACTORY |
protected static org.locationtech.spatial4j.context.jts.JtsSpatialContext |
SPATIAL_CONTEXT |
Constructor and Description |
---|
OShapeBuilder() |
Modifier and Type | Method and Description |
---|---|
byte[] |
asBinary(T shape) |
String |
asGeoJson(ODocument document) |
String |
asGeoJson(T shape) |
String |
asText(Map<String,Object> geoJson) |
String |
asText(Object object) |
String |
asText(ODocument document) |
String |
asText(T shape) |
org.locationtech.spatial4j.shape.Shape |
buffer(org.locationtech.spatial4j.shape.Shape shape,
Double distance,
Map<String,Object> params) |
org.locationtech.spatial4j.context.SpatialContext |
context() |
abstract T |
fromDoc(ODocument doc) |
ODocument |
fromGeoJson(String geoJson) |
T |
fromMapGeoJson(Map<String,Object> geoJsonMap) |
T |
fromObject(Object obj) |
T |
fromText(String wkt) |
abstract String |
getName() |
int |
getSRID(org.locationtech.spatial4j.shape.Shape shape) |
abstract OShapeType |
getType() |
abstract void |
initClazz(ODatabaseInternal db) |
protected OClass |
superClass(ODatabaseInternal db) |
ODocument |
toDoc(String wkt) |
abstract ODocument |
toDoc(T shape) |
org.locationtech.spatial4j.shape.jts.JtsGeometry |
toShape(org.locationtech.jts.geom.Geometry geometry) |
void |
validate(ODocument doc) |
public static final String COORDINATES
public static final String BASE_CLASS
protected static final org.locationtech.spatial4j.context.jts.JtsSpatialContext SPATIAL_CONTEXT
protected static final org.locationtech.jts.geom.GeometryFactory GEOMETRY_FACTORY
protected static final org.locationtech.spatial4j.shape.jts.JtsShapeFactory SHAPE_FACTORY
public abstract String getName()
public abstract OShapeType getType()
public abstract void initClazz(ODatabaseInternal db)
public byte[] asBinary(T shape)
public ODocument fromGeoJson(String geoJson) throws IOException, ParseException
IOException
ParseException
public void validate(ODocument doc)
public org.locationtech.spatial4j.shape.jts.JtsGeometry toShape(org.locationtech.jts.geom.Geometry geometry)
protected OClass superClass(ODatabaseInternal db)
public T fromText(String wkt) throws ParseException
ParseException
public ODocument toDoc(String wkt) throws ParseException
ParseException
public int getSRID(org.locationtech.spatial4j.shape.Shape shape)
public org.locationtech.spatial4j.shape.Shape buffer(org.locationtech.spatial4j.shape.Shape shape, Double distance, Map<String,Object> params)
public org.locationtech.spatial4j.context.SpatialContext context()
Copyright © 2009–2020 OrientDB. All rights reserved.