org.h2gis.network.graph_creator
Class ST_Accessibility

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.network.graph_creator.GraphFunction
          extended by org.h2gis.network.graph_creator.ST_Accessibility
All Implemented Interfaces:
Function, ScalarFunction

public class ST_Accessibility
extends GraphFunction
implements ScalarFunction

Calculates, for each vertex, the closest destination among several possible destinations, as well as the distance to this destination.

Author:
Adam Gogue

Field Summary
static String REMARKS
           
 
Fields inherited from class org.h2gis.network.graph_creator.GraphFunction
ARG_ERROR
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_Accessibility()
          Constructor
 
Method Summary
static ResultSet getAccessibility(Connection connection, String inputTable, String orientation, String arg3)
           
static ResultSet getAccessibility(Connection connection, String inputTable, String orientation, String weight, String arg4)
           
 String getJavaStaticMethod()
           
 
Methods inherited from class org.h2gis.network.graph_creator.GraphFunction
logTime, prepareGraph
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Field Detail

REMARKS

public static final String REMARKS
See Also:
Constant Field Values
Constructor Detail

ST_Accessibility

public ST_Accessibility()
Constructor

Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()
Specified by:
getJavaStaticMethod in interface ScalarFunction

getAccessibility

public static ResultSet getAccessibility(Connection connection,
                                         String inputTable,
                                         String orientation,
                                         String arg3)
                                  throws SQLException
Parameters:
connection - Connection
inputTable - Edges table produced by ST_Graph
orientation - Orientation string
arg3 - Destination string or destination table
Returns:
Table with closest destination id and distance to closest destination
Throws:
SQLException

getAccessibility

public static ResultSet getAccessibility(Connection connection,
                                         String inputTable,
                                         String orientation,
                                         String weight,
                                         String arg4)
                                  throws SQLException
Parameters:
connection - Connection
inputTable - Edges table produced by ST_Graph
orientation - Orientation string
weight - Weight
arg4 - Destination string or destination table
Returns:
Table with closest destination id and distance to closest destination
Throws:
SQLException


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.