public class OSMTablesFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NODE |
static String |
NODE_MEMBER |
static String |
NODE_TAG |
static String |
RELATION |
static String |
RELATION_MEMBER |
static String |
RELATION_TAG |
static String |
TAG |
static String |
WAY |
static String |
WAY_MEMBER |
static String |
WAY_NODE |
static String |
WAY_TAG |
| Modifier and Type | Method and Description |
|---|---|
static PreparedStatement |
createNodeMemberTable(Connection connection,
String nodeMemberTable)
Create the node members table
|
static PreparedStatement |
createNodeTable(Connection connection,
String nodeTableName,
boolean isH2)
Create the nodes table that will be used to import OSM nodes
Example :
|
static PreparedStatement |
createNodeTagTable(Connection connection,
String nodeTagTableName,
String tagTableName)
Create a table to store the node tags.
|
static PreparedStatement |
createRelationMemberTable(Connection connection,
String relationMemberTable)
Store all relation members
|
static PreparedStatement |
createRelationTable(Connection connection,
String relationTable)
Create the relation table.
|
static PreparedStatement |
createRelationTagTable(Connection connection,
String relationTagTable,
String tagTableName)
Create the relation tags table
|
static PreparedStatement |
createTagTable(Connection connection,
String tagTableName)
Create the tag table to store all key and value
|
static PreparedStatement |
createWayMemberTable(Connection connection,
String wayMemberTable)
Create a table to store all way members.
|
static PreparedStatement |
createWayNodeTable(Connection connection,
String wayNodeTableName)
Create a table to store the list of nodes for each way.
|
static PreparedStatement |
createWayTable(Connection connection,
String wayTableName,
boolean isH2)
Create the ways table that will be used to import OSM ways
Example :
|
static PreparedStatement |
createWayTagTable(Connection connection,
String wayTagTableName,
String tagTableName)
Create a table to store the way tags.
|
static void |
dropOSMTables(Connection connection,
boolean isH2,
String tablePrefix)
Drop the existing OSM tables used to store the imported OSM data
|
public static final String TAG
public static final String NODE
public static final String WAY
public static final String NODE_TAG
public static final String WAY_TAG
public static final String WAY_NODE
public static final String RELATION
public static final String RELATION_TAG
public static final String NODE_MEMBER
public static final String WAY_MEMBER
public static final String RELATION_MEMBER
public static PreparedStatement createTagTable(Connection connection, String tagTableName) throws SQLException
connection - tagTableName - SQLExceptionpublic static PreparedStatement createNodeTable(Connection connection, String nodeTableName, boolean isH2) throws SQLException
connection - nodeTableName - isH2 - SQLExceptionpublic static PreparedStatement createNodeTagTable(Connection connection, String nodeTagTableName, String tagTableName) throws SQLException
connection - nodeTagTableName - tagTableName - SQLExceptionpublic static PreparedStatement createWayTable(Connection connection, String wayTableName, boolean isH2) throws SQLException
connection - wayTableName - SQLExceptionpublic static PreparedStatement createWayTagTable(Connection connection, String wayTagTableName, String tagTableName) throws SQLException
connection - wayTagTableName - tagTableName - SQLExceptionpublic static PreparedStatement createWayNodeTable(Connection connection, String wayNodeTableName) throws SQLException
connection - wayNodeTableName - SQLExceptionpublic static PreparedStatement createRelationTable(Connection connection, String relationTable) throws SQLException
connection - relationTable - SQLExceptionpublic static PreparedStatement createRelationTagTable(Connection connection, String relationTagTable, String tagTableName) throws SQLException
connection - tagTableName - relationTagTable - SQLExceptionpublic static PreparedStatement createNodeMemberTable(Connection connection, String nodeMemberTable) throws SQLException
connection - nodeMemberTable - SQLExceptionpublic static PreparedStatement createWayMemberTable(Connection connection, String wayMemberTable) throws SQLException
connection - wayMemberTable - SQLExceptionpublic static PreparedStatement createRelationMemberTable(Connection connection, String relationMemberTable) throws SQLException
connection - relationMemberTable - SQLExceptionpublic static void dropOSMTables(Connection connection, boolean isH2, String tablePrefix) throws SQLException
connection - isH2 - tablePrefix - SQLExceptionCopyright © 2019 CNRS. All rights reserved.