Class H2DSMetadata
java.lang.Object
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata
com.vividsolutions.jump.datastore.h2.H2DSMetadata
- All Implemented Interfaces:
DataStoreMetadata
Metadata for a H2 Database
-
Field Summary
Fields inherited from class SpatialDatabasesDSMetadata
conn, coordDimQuery, datasetInfoQuery, datasetNameQuery, dataStoreLayers, defaultSchemaName, geoColumnsQuery, reader, spatialDbName, spatialExtentQuery1, spatialExtentQuery2, sridMap, sridQuery, txtReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAddGeometryColumnStatement(String schemaName, String tableName, String geometryColumn, int srid, String geometryType, int dim) Creates the query String to add a GeometryColumn.getAddSpatialIndexStatement(String schemaName, String tableName, String geometryColumn) Create statement to add a spatial index on the specified geometry column.getGeoColumnsQuery(String datasetName) getGeometryAttributes(String datasetName) Retrieves list of geometric tables from a custom DB Query: Should use OGC metadata geoemtry_columns or equivalent mechanism according to target DB.getSpatialExtentQuery1(String schema, String table, String attributeName) getSpatialExtentQuery2(String schema, String table, String attributeName) getSridQuery(String schemaName, String tableName, String colName) Methods inherited from class SpatialDatabasesDSMetadata
createColumnList, getColumnNames, getCoordinateDimension, getCoordinateDimensionQuery, getCreateTableStatement, getDatasetInfoQuery, getDatasetNameQuery, getDatasetNames, getDataStoreConnection, getDataStoreLayers, getDbTypeName, getDefaultSchemaName, getExtents, getGeometryAttributes, getPrimaryKeyColumns, getSchemaName, getSpatialDbName, getSRID, getTableName, isIndexed, missingGeoException, querySRID
-
Constructor Details
-
H2DSMetadata
-
-
Method Details
-
getSpatialExtentQuery1
- Overrides:
getSpatialExtentQuery1in classSpatialDatabasesDSMetadata
-
getSpatialExtentQuery2
- Overrides:
getSpatialExtentQuery2in classSpatialDatabasesDSMetadata
-
getGeoColumnsQuery
- Overrides:
getGeoColumnsQueryin classSpatialDatabasesDSMetadata
-
getSridQuery
- Overrides:
getSridQueryin classSpatialDatabasesDSMetadata
-
getGeometryAttributes
Description copied from class:SpatialDatabasesDSMetadataRetrieves list of geometric tables from a custom DB Query: Should use OGC metadata geoemtry_columns or equivalent mechanism according to target DB.- Specified by:
getGeometryAttributesin interfaceDataStoreMetadata- Overrides:
getGeometryAttributesin classSpatialDatabasesDSMetadata- Parameters:
datasetName- name of a dataset- Returns:
- list of GeometryColumn's referenced in this dataset
-
getAddGeometryColumnStatement
public String getAddGeometryColumnStatement(String schemaName, String tableName, String geometryColumn, int srid, String geometryType, int dim) Description copied from class:SpatialDatabasesDSMetadataCreates the query String to add a GeometryColumn.Note 1 : In PostGIS 2.x, srid=-1 is automatically converted to srid=0 by AddGeometryColumn function.
Note 2 : To stay compatible with PostGIS 1.x, last argument of AddGeometryColumn is omitted. As a consequence, geometry type uses type modifier rather than constraints (new default behaviour in 2.x)
The geometry column name must have its final form. Attribute name normalization is the responsability of the calling method.
- Overrides:
getAddGeometryColumnStatementin classSpatialDatabasesDSMetadata- Parameters:
schemaName- the name of the SchematableName- the name of the TablegeometryColumn- the name of the geometry columnsrid- the SRID for the geometry columngeometryType- the (SQL) geometry type as a Stringdim- the coordinate dimension (2 or 3)- Returns:
- a SQL query string to add a geometry column to a table
-
getAddSpatialIndexStatement
public String getAddSpatialIndexStatement(String schemaName, String tableName, String geometryColumn) Description copied from class:SpatialDatabasesDSMetadataCreate statement to add a spatial index on the specified geometry column. The geometry column name must have its final form. Attribute name normalization is the responsability of the calling method.- Overrides:
getAddSpatialIndexStatementin classSpatialDatabasesDSMetadata- Parameters:
schemaName- unquoted schema name or null if default schema is usedtableName- unquoted table namegeometryColumn- unquoted geometry column name- Returns:
- a sql string to add a spatial index
-