public class ST_Graph
extends org.h2gis.api.AbstractFunction
implements org.h2gis.api.ScalarFunction
| Modifier and Type | Field and Description |
|---|---|
static String |
ALREADY_RUN_ERROR |
static String |
COORDS_TABLE |
static String |
EDGES_SUFFIX |
static String |
NODES_SUFFIX |
static String |
PTS_TABLE |
static String |
REMARKS |
static String |
TYPE_ERROR |
| Constructor and Description |
|---|
ST_Graph()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
createGraph(Connection connection,
String tableName)
Create the nodes and edges tables from the input table containing
LINESTRINGs.
|
static boolean |
createGraph(Connection connection,
String tableName,
String spatialFieldName)
Create the nodes and edges tables from the input table containing
LINESTRINGs in the given column.
|
static boolean |
createGraph(Connection connection,
String tableName,
String spatialFieldName,
double tolerance)
Create the nodes and edges tables from the input table containing
LINESTRINGs in the given column and using the given
tolerance.
|
static boolean |
createGraph(Connection connection,
String inputTable,
String spatialFieldName,
double tolerance,
boolean orientBySlope)
Create the nodes and edges tables from the input table containing
LINESTRINGs in the given column and using the given
tolerance, and potentially orienting edges by slope.
|
static boolean |
createGraph(Connection connection,
String inputTable,
String spatialFieldName,
double tolerance,
boolean orientBySlope,
boolean deleteTables)
Create the nodes and edges tables from the input table containing
LINESTRINGs in the given column and using the given
tolerance, and potentially orienting edges by slope.
|
String |
getJavaStaticMethod() |
addProperty, getProperty, removePropertypublic static final String NODES_SUFFIX
public static final String EDGES_SUFFIX
public static String PTS_TABLE
public static String COORDS_TABLE
public static final String REMARKS
public static final String TYPE_ERROR
public static final String ALREADY_RUN_ERROR
public String getJavaStaticMethod()
getJavaStaticMethod in interface org.h2gis.api.ScalarFunctionpublic static boolean createGraph(Connection connection, String tableName) throws SQLException
connection - ConnectiontableName - Input table containing LINESTRINGsSQLExceptionpublic static boolean createGraph(Connection connection, String tableName, String spatialFieldName) throws SQLException
connection - ConnectiontableName - Input tablespatialFieldName - Name of column containing LINESTRINGsSQLExceptionpublic static boolean createGraph(Connection connection, String tableName, String spatialFieldName, double tolerance) throws SQLException
connection - ConnectiontableName - Input tablespatialFieldName - Name of column containing LINESTRINGstolerance - ToleranceSQLExceptionpublic static boolean createGraph(Connection connection, String inputTable, String spatialFieldName, double tolerance, boolean orientBySlope) throws SQLException
connection - ConnectioninputTable - Input tablespatialFieldName - Name of column containing LINESTRINGstolerance - ToleranceorientBySlope - True if edges should be oriented by the z-value of
their first and last coordinates (decreasing)SQLExceptionpublic static boolean createGraph(Connection connection, String inputTable, String spatialFieldName, double tolerance, boolean orientBySlope, boolean deleteTables) throws SQLException
connection - ConnectioninputTable - Input tablespatialFieldName - Name of column containing LINESTRINGstolerance - ToleranceorientBySlope - True if edges should be oriented by the z-value of
their first and last coordinates (decreasing)deleteTables - True delete the existing tablesSQLExceptionCopyright © 2019 CNRS. All rights reserved.