public class FeatureSchemaFactory extends Object
| Constructor and Description |
|---|
FeatureSchemaFactory()
Creates a new instance of FeatureSchemaFactory
|
| Modifier and Type | Method and Description |
|---|---|
static org.locationtech.jts.jump.feature.FeatureSchema |
createFeatureSchemaFromDbTable(Connection conn,
String table,
String[] dontAddColumns)
Creates a FeatureSchema from a table.
|
static org.locationtech.jts.jump.feature.FeatureSchema |
createFeatureSchemaFromDbTable(String url,
String user,
String password,
Driver driver,
String table,
String[] dontAddColumns)
Creates a FeatureSchema from a table.
|
static org.locationtech.jts.jump.feature.FeatureSchema |
createFeatureSchemaFromMapping(FeatureType ft,
int epsgCode)
Creates a FeatureSchema from a mapping.
|
public FeatureSchemaFactory()
public static org.locationtech.jts.jump.feature.FeatureSchema createFeatureSchemaFromDbTable(String url, String user, String password, Driver driver, String table, String[] dontAddColumns) throws SQLException, Exception
url - The url to the databaseuser - The user to connect to the databasepassword - The password needed to connect to the databasedriver - The driver used to connect to the databasetable - The name of the table in the given database. From this table a FeatureSchema is createdSQLExceptionExceptionpublic static org.locationtech.jts.jump.feature.FeatureSchema createFeatureSchemaFromDbTable(Connection conn, String table, String[] dontAddColumns) throws SQLException, Exception
conn - The connection to the database.table - The name of the table in the given database. From this table a FeatureSchema is createdSQLExceptionExceptionpublic static org.locationtech.jts.jump.feature.FeatureSchema createFeatureSchemaFromMapping(FeatureType ft, int epsgCode)
ft - mapping.Copyright © 2022 B3Partners B.V.. All rights reserved.