Class SpatialiteDSMetadata
java.lang.Object
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata
com.vividsolutions.jump.datastore.spatialite.SpatialiteDSMetadata
- All Implemented Interfaces:
DataStoreMetadata
Spatialite connexion metadata. Some extra processing occurs here: telling if
spatialite extension is loaded and what type of geo metatada are present:
- Author:
- nicolas Ribot
-
Field Summary
FieldsFields 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 TypeMethodDescriptiongetGeoColumnsQuery(String datasetName) No schema in SQLiteprotected List<GeometryColumn> getGeometryAttributes(String sql, String datasetName) Overridden to deal with indexed geometry columns, as queries to get features are different if spatial index is detected on the column.getGeometryColumn(String datasetName, String geoCol) Convenience method to get a geometryColumn object from this metadatagetSpatialExtentQuery1(String schema, String table, String attributeName) getSpatialExtentQuery2(String schema, String table, String attributeName) getSridQuery(String schemaName, String tableName, String colName) booleanprotected voidsetIndexInfo(String datasetName, GeometryColumn gc) set if given gc column is spatially indexed (true/false) according to spatialite DB typevoidsetSpatialiteVersion(String spatialiteVersion) Methods inherited from class SpatialDatabasesDSMetadata
createColumnList, getAddGeometryColumnStatement, getAddSpatialIndexStatement, getColumnNames, getCoordinateDimension, getCoordinateDimensionQuery, getCreateTableStatement, getDatasetInfoQuery, getDatasetNameQuery, getDatasetNames, getDataStoreConnection, getDataStoreLayers, getDbTypeName, getDefaultSchemaName, getExtents, getGeometryAttributes, getPrimaryKeyColumns, getSchemaName, getSpatialDbName, getSRID, getTableName, isIndexed, missingGeoException, querySRID
-
Field Details
-
GC_COLUMN_NAME
-
GPKG_GC_COLUMN_NAME
-
GPKG_CONTENTS_TABLE_NAME
-
-
Constructor Details
-
SpatialiteDSMetadata
- Parameters:
con- a DataStoreConnection
-
-
Method Details
-
getGeometryAttributes
Overridden to deal with indexed geometry columns, as queries to get features are different if spatial index is detected on the column. Builds a GeometryColumn object with 5 params constructor.- Overrides:
getGeometryAttributesin classSpatialDatabasesDSMetadata- Parameters:
sql- SQL string to retrieve geometry columnsdatasetName- name of the dataset- Returns:
- a List of GeometryColumn
-
getSpatialExtentQuery1
- Overrides:
getSpatialExtentQuery1in classSpatialDatabasesDSMetadata
-
getSpatialExtentQuery2
- Overrides:
getSpatialExtentQuery2in classSpatialDatabasesDSMetadata
-
getGeoColumnsQuery
No schema in SQLite- Overrides:
getGeoColumnsQueryin classSpatialDatabasesDSMetadata- Parameters:
datasetName- name of the Dataset- Returns:
- the SQL string to retrieve the geometry columns
-
getSridQuery
- Overrides:
getSridQueryin classSpatialDatabasesDSMetadata
-
isSpatialiteLoaded
public boolean isSpatialiteLoaded() -
getSpatialiteVersion
-
setSpatialiteVersion
-
getGeometryColumnsLayout
-
getGeoColTypesdMap
-
setIndexInfo
set if given gc column is spatially indexed (true/false) according to spatialite DB type- Parameters:
datasetName- the name of the dataset this column belongs togc- the geometry column to set
-
getGeometryColumn
Convenience method to get a geometryColumn object from this metadata- Parameters:
datasetName- the name of the datasetgeoCol- the name of the geo column- Returns:
- a GeometryColumn object
-