Hermes@Neo4j
Neo4jSpatiotemporal.SpatialTemporalTopologyUtils Class Reference

Classes

class  PointResult
 

Static Public Member Functions

static ArrayList< PointResult > findClosestEdges (TemporalPoint point, LayerST layer)
 
static ArrayList< PointResult > findClosestEdges (TemporalPoint point, LayerST layer, double distance)
 
static ArrayList< PointResult > findClosestEdges (TemporalPoint point, LayerST layer, Geometry filter)
 
static Point locatePoint (LayerST layer, Geometry geometry, double measure)
 
static TemporalCoordinate locatePoint (Geometry geometry, double measure)
 
static TemporalPoint locatePoint (LayerST layer, Geometry geometry, double measure, double offset)
 
static TemporalCoordinate locatePoint (Geometry geometry, double measure, double offset)
 
static ReferencedTemporalEnvelope adjustBounds (ReferencedTemporalEnvelope bounds, double zoomFactor, double[] offsetFactor)
 
static MBB adjustBounds (MBB bounds, double zoomFactor, double[] offset)
 
static MBB createEnvelopeForGeometryDensityEstimate (LayerST layer, TemporalCoordinate point, int limit)
 
static MBB createEnvelopeForGeometryDensityEstimate (LayerST layer, TemporalCoordinate point, double fraction)
 

Detailed Description

This class is a temporary location for collecting a number of spatial utilities before we have decided on a more complete analysis structure. Do not rely on this API remaining constant.

Member Function Documentation

static ReferencedTemporalEnvelope Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.adjustBounds ( ReferencedTemporalEnvelope  bounds,
double  zoomFactor,
double[]  offsetFactor 
)
static

Adjust the size and position of a ReferencedEnvelope using fractions of the current size. For example:

bounds = adjustBounds(bounds, 0.3, new double[] { -0.1, 0.1 });

This will zoom in to show 30% of the height and width, and will also move the visible window 10% to the left and 10% up.

Parameters
boundscurrent envelope
zoomFactorfraction of size to zoom in by
offsetFactorfraction of size to offset visible window by
Returns
adjusted envelope
static MBB Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.adjustBounds ( MBB  bounds,
double  zoomFactor,
double[]  offset 
)
static
static MBB Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.createEnvelopeForGeometryDensityEstimate ( LayerST  layer,
TemporalCoordinate  point,
int  limit 
)
static

Create an Envelope that should approximately include the specified number of geometries, based on a simple linear calculation of the geometry density. If the layer has fewer geometries, then the layer bounds will be returned. If the limit is set to zero (or negative), a point Envelope will be returned.

Parameters
layerthe layer whose geometry density is to be used to estimate the size of the envelope
pointthe coordinate around which to build the envelope
limitthe number of geometries to be included in the envelope
Returns
an envelope designed to include the estimated number of geometries
static MBB Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.createEnvelopeForGeometryDensityEstimate ( LayerST  layer,
TemporalCoordinate  point,
double  fraction 
)
static

Create an Envelope that should approximately include the specified number of geometries, based on a simple linear calculation of the geometry density. If the layer has fewer geometries, then the layer bounds will be returned. If the limit is set to zero (or negative), a point Envelope will be returned.

Parameters
layerthe layer whose geometry density is to be used to estimate the size of the envelope
pointthe coordinate around which to build the envelope
fractionthe fractional number of geometries to be included in the envelope
Returns
an envelope designed to include the estimated number of geometries
static ArrayList<PointResult> Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.findClosestEdges ( TemporalPoint  point,
LayerST  layer 
)
static
static ArrayList<PointResult> Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.findClosestEdges ( TemporalPoint  point,
LayerST  layer,
double  distance 
)
static
static ArrayList<PointResult> Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.findClosestEdges ( TemporalPoint  point,
LayerST  layer,
Geometry  filter 
)
static
static Point Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.locatePoint ( LayerST  layer,
Geometry  geometry,
double  measure 
)
static

Create a Point located at the specified 'measure' distance along a Geometry. This is achieved through using the JTS LengthIndexedLine.extractPoint(measure) method for finding the coordinates at the specified measure along the geometry. It is equivalent to Oracle's SDO_LRS.LOCATE_PT.

See also
http://download.oracle.com/docs/cd/B13789_01/appdev.101/b10826/sdo_lrs_ref.htm#i85478
http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/linearref/LengthIndexedLine.html
Parameters
layerLayer the geometry is contained by, and is used to access the GeometryFactory for creating the Point
geometryGeometry to measure
measurethe distance along the geometry
Returns
Point at 'measure' distance along the geometry
static TemporalCoordinate Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.locatePoint ( Geometry  geometry,
double  measure 
)
static

Find the coordinate at the specified 'measure' distance along a Geometry. This is achieved through using the JTS LengthIndexedLine.extractPoint(measure) method for finding the coordinates at the specified measure along the geometry. It is equivalent to Oracle's SDO_LRS.LOCATE_PT.

See also
http://download.oracle.com/docs/cd/B13789_01/appdev.101/b10826/sdo_lrs_ref.htm#i85478
http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/linearref/LengthIndexedLine.html
Parameters
geometryGeometry to measure
measurethe distance along the geometry
Returns
Coordinate at 'measure' distance along the geometry
static TemporalPoint Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.locatePoint ( LayerST  layer,
Geometry  geometry,
double  measure,
double  offset 
)
static

Create a Point located at the specified 'measure' distance along a Geometry, and offset to the left of the Geometry by the specified offset distance. This is achieved through using the JTS LengthIndexedLine.extractPoint(measure) method for finding the coordinates at the specified measure along the geometry. It is equivalent to Oracle's SDO_LRS.LOCATE_PT.

See also
http://download.oracle.com/docs/cd/B13789_01/appdev.101/b10826/sdo_lrs_ref.htm#i85478
http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/linearref/LengthIndexedLine.html
Parameters
layerLayer the geometry is contained by, and is used to access the GeometryFactory for creating the Point
geometryGeometry to measure
measurethe distance along the geometry
offsetthe distance offset to the left (or right for negative numbers)
Returns
Point at 'measure' distance along the geometry, and offset
static TemporalCoordinate Neo4jSpatiotemporal.SpatialTemporalTopologyUtils.locatePoint ( Geometry  geometry,
double  measure,
double  offset 
)
static

Find the coordinate located at the specified 'measure' distance along a Geometry, and offset to the left of the Geometry by the specified offset distance. This is achieved through using the JTS LengthIndexedLine.extractPoint(measure) method for finding the coordinates at the specified measure along the geometry. It is equivalent to Oracle's SDO_LRS.LOCATE_PT.

See also
http://download.oracle.com/docs/cd/B13789_01/appdev.101/b10826/sdo_lrs_ref.htm#i85478
http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/linearref/LengthIndexedLine.html
Parameters
layerLayer the geometry is contained by, and is used to access the GeometryFactory for creating the Point
geometryGeometry to measure
measurethe distance along the geometry
offsetthe distance offset to the left (or right for negative numbers)
Returns
Point at 'measure' distance along the geometry, and offset

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