Class PostgisDSMetadata
- java.lang.Object
-
- com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata
-
- com.vividsolutions.jump.datastore.postgis.PostgisDSMetadata
-
- All Implemented Interfaces:
DataStoreMetadata
public class PostgisDSMetadata extends SpatialDatabasesDSMetadata
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata
conn, coordDimQuery, datasetInfoQuery, datasetNameQuery, dataStoreLayers, defaultSchemaName, geoColumnsQuery, reader, spatialDbName, spatialExtentQuery1, spatialExtentQuery2, sridMap, sridQuery, txtReader
-
-
Constructor Summary
Constructors Constructor Description PostgisDSMetadata(DataStoreConnection con)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddSpatialIndexStatement(String schemaName, String tableName, String geometryColumn)
Create statement to add a spatial index on the specified geometry column.String
getCoordinateDimensionQuery(String schemaName, String tableName, String colName)
protected String
getDbTypeName(AttributeType type)
Return standard SQL data type for OpenJUMP AttributeType.String
getGeoColumnsQuery(String datasetName)
List<GeometryColumn>
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.String
getSpatialExtentQuery1(String schema, String table, String attributeName)
String
getSpatialExtentQuery2(String schema, String table, String attributeName)
String
getSridQuery(String schemaName, String tableName, String colName)
-
Methods inherited from class com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata
createColumnList, getAddGeometryColumnStatement, getColumnNames, getCoordinateDimension, getCreateTableStatement, getDatasetInfoQuery, getDatasetNameQuery, getDatasetNames, getDataStoreConnection, getDataStoreLayers, getDefaultSchemaName, getExtents, getGeometryAttributes, getPrimaryKeyColumns, getSchemaName, getSpatialDbName, getSRID, getTableName, isIndexed, missingGeoException, querySRID
-
-
-
-
Constructor Detail
-
PostgisDSMetadata
public PostgisDSMetadata(DataStoreConnection con)
-
-
Method Detail
-
getSpatialExtentQuery1
public String getSpatialExtentQuery1(String schema, String table, String attributeName)
- Overrides:
getSpatialExtentQuery1
in classSpatialDatabasesDSMetadata
-
getSpatialExtentQuery2
public String getSpatialExtentQuery2(String schema, String table, String attributeName)
- Overrides:
getSpatialExtentQuery2
in classSpatialDatabasesDSMetadata
-
getGeoColumnsQuery
public String getGeoColumnsQuery(String datasetName)
- Overrides:
getGeoColumnsQuery
in classSpatialDatabasesDSMetadata
-
getSridQuery
public String getSridQuery(String schemaName, String tableName, String colName)
- Overrides:
getSridQuery
in classSpatialDatabasesDSMetadata
-
getGeometryAttributes
public List<GeometryColumn> getGeometryAttributes(String datasetName)
Description copied from class:SpatialDatabasesDSMetadata
Retrieves list of geometric tables from a custom DB Query: Should use OGC metadata geoemtry_columns or equivalent mechanism according to target DB.- Specified by:
getGeometryAttributes
in interfaceDataStoreMetadata
- Overrides:
getGeometryAttributes
in classSpatialDatabasesDSMetadata
- Parameters:
datasetName
- name of a dataset- Returns:
- list of GeometryColumn's referenced in this dataset
-
getCoordinateDimensionQuery
public String getCoordinateDimensionQuery(String schemaName, String tableName, String colName)
- Overrides:
getCoordinateDimensionQuery
in classSpatialDatabasesDSMetadata
-
getDbTypeName
protected String getDbTypeName(AttributeType type)
Description copied from class:SpatialDatabasesDSMetadata
Return standard SQL data type for OpenJUMP AttributeType. This method must be overloaded by specific database oj2dbType- Overrides:
getDbTypeName
in classSpatialDatabasesDSMetadata
- Parameters:
type
- OpenJUMP attribute type- Returns:
- the database datatype
-
getAddSpatialIndexStatement
public String getAddSpatialIndexStatement(String schemaName, String tableName, String geometryColumn)
Create 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:
getAddSpatialIndexStatement
in 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
-
-