Hermes@Neo4j
Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder Class Referenceabstract
Inheritance diagram for Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder:
Neo4jSpatiotemporal.TemporalGeometryEncoder Neo4jSpatiotemporal.TemporalConstants Neo4jSpatiotemporal.Hybrid3DRTree.IndexEnvelopeDecoder Neo4jSpatiotemporal.Encoders.EpisodeEncoder Neo4jSpatiotemporal.Encoders.SemanticTrajectoryEncoder Neo4jSpatiotemporal.Encoders.TemporalPointEncoder Neo4jSpatiotemporal.WKBTemporalGeometryEncoder Neo4jSpatiotemporal.WKTTemporalGeometryEncoder

Public Member Functions

void init (LayerST layer)
 
void encodeEnvelope (IndexEnvelope mbb, PropertyContainer container)
 
void encodeGeometry (Geometry geometry, PropertyContainer container)
 
IndexEnvelope decodeEnvelope (PropertyContainer container)
 
boolean hasAttribute (Node geomNode, String name)
 
Object getAttribute (Node geomNode, String name)
 
- Public Member Functions inherited from Neo4jSpatiotemporal.TemporalGeometryEncoder
Geometry decodeGeometry (PropertyContainer container)
 

Protected Member Functions

abstract void encodeGeometryShape (Geometry geometry, PropertyContainer container)
 
Integer encodeGeometryType (String jtsGeometryType)
 

Protected Attributes

LayerST layer
 

Additional Inherited Members

- Public Attributes inherited from Neo4jSpatiotemporal.TemporalConstants
String PROP_LAYER = "layer"
 
String PROP_LAYERNODEEXTRAPROPS = "layerprops"
 
String PROP_CRS = "layercrs"
 
String PROP_CREATIONTIME = "ctime"
 
String PROP_GEOMENCODER = "geomencoder"
 
String PROP_GEOMENCODER_CONFIG = "geomencoder_config"
 
String PROP_LAYER_CLASS = "layer_class"
 
String PROP_TYPE = "gtype"
 
String PROP_QUERY = "query"
 
String PROP_WKB = "wkb"
 
String PROP_WKT = "wkt"
 
String[] RESERVED_PROPS
 
int GTYPE_GEOMETRY = 0
 
int GTYPE_POINT = 1
 
int GTYPE_LINESTRING = 2
 
int GTYPE_POLYGON = 3
 
int GTYPE_MULTIPOINT = 4
 
int GTYPE_MULTILINESTRING = 5
 
int GTYPE_MULTIPOLYGON = 6
 

Member Function Documentation

IndexEnvelope Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.decodeEnvelope ( PropertyContainer  container)
void Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.encodeEnvelope ( IndexEnvelope  mbb,
PropertyContainer  container 
)
void Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.encodeGeometry ( Geometry  geometry,
PropertyContainer  container 
)

This method is called to store a geometry object to the database. It should write it to the container supplied. If the container is a node, it can be the root of an entire sub-graph.

Parameters
geometry
container

Implements Neo4jSpatiotemporal.TemporalGeometryEncoder.

abstract void Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.encodeGeometryShape ( Geometry  geometry,
PropertyContainer  container 
)
abstractprotected
Integer Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.encodeGeometryType ( String  jtsGeometryType)
protected
Object Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.getAttribute ( Node  geomNode,
String  name 
)

This method wraps the getProperty(String,null) method on the geometry node. This means the default way of storing attributes is simply as properties of the geometry node. This behaviour can be changed by other domain models with different encodings. If the property does not exist, the method returns null.

Parameters
geomNode
attributeto test
Returns
attribute, or null

Implements Neo4jSpatiotemporal.TemporalGeometryEncoder.

boolean Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.hasAttribute ( Node  geomNode,
String  name 
)

This method wraps the hasProperty(String) method on the geometry node. This means the default way of storing attributes is simply as properties of the geometry node. This behaviour can be changed by other domain models with different encodings.

Parameters
geomNode
attributeto test
Returns

Implements Neo4jSpatiotemporal.TemporalGeometryEncoder.

void Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.init ( LayerST  layer)

When accessing an existing layer, the Layer is constructed from a single node in the graph that represents a layer. This node is expected to have a property containing the class name of the GeometryEncoder for that layer, and it will be constructed and passed the layer using this method, allowing the Layer and the GeometryEncoder to interact.

Parameters
layerrecently created Layer class

Implements Neo4jSpatiotemporal.TemporalGeometryEncoder.

Member Data Documentation

LayerST Neo4jSpatiotemporal.AbstractTemporalGeometryEncoder.layer
protected

The documentation for this class was generated from the following file: