Class TLcdOracleGeoRasterModelDescriptor
- All Implemented Interfaces:
ILcdDatabaseModelDescriptor,ILcdImageModelDescriptor,ILcdDataModelDescriptor,ILcdModelDescriptor,ILcdFeaturedDescriptor,Serializable,Cloneable
ILcdDatabaseModelDescriptor describes a spatial georaster
database.
For accessing an existing spatial table, the following information is
required:
- a database driver,
- a database URL,
- connection properties, including 'user' and 'password',
- a table name,
- a column name containing the georaster.
- Since:
- 8.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TLcdOracleGeoRasterModelDescriptor based on the given descriptor.TLcdOracleGeoRasterModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aColumnName, String aSourceFileName, String aDisplayName) Creates a new TLcdOracleGeoRasterModelDescriptor with the given properties. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this descriptor.voidclose()Closes theConnectionof this descriptor, if it was opened.returns the bounds of the geometry.Concatenates the main column name and the feature column names into a singleStringof comma-separated column names.Concatenates the main column name and type, and the feature column names and types into a singleStringof comma-separated column names and types.Returns the connection properties.Returns the data model that describes the elements of the model.Returns the JDBC driver name.Returns the ellipsoid of the database object reference.getFeatureClass(int aIndex) Returns theClassof the feature at the given index.intReturns the number of features.intgetFeatureIndex(String aName) Returns the index of the given feature name if it exists, -1 otherwise.getFeatureName(int aIndex) Feature names for a GeoRaster are currently ignored.getFeatureType(int aIndex) Feature types for a GeoRaster are currently ignored.Returns the name of the column containing the database raster.The geometry type of a GeoRaster is currently ignored.Returns a set containing all the data types of which instances can be elements in the model associated with this descriptor.Returns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor.intThe primary feature index of a GeoRaster is currently ignored.Returns the string representing the selection filter.Returns the names of the additional tables used in the select queryintgetSRID()Returns the Spatial Reference ID number.Returns the name of the database table.Returns the type/format name of the data source.getURL()Returns the JDBC connection URL.booleanvoidsetAlwaysCloseConnection(boolean aAlwaysCloseConnection) voidsetBounds(ILcdBounds aBounds) Sets the bounds of the geometry.voidsetConnectionProperties(Properties aConnectionProperties) Sets the connection properties.voidSets the JDBC driver name.protected voidsetElevation(boolean aElevation) Specifies whether the model contains elevation rasters.voidsetEllipsoid(ILcdEllipsoid aEllipsoid) Sets the ellipsoid of the database object's reference.voidsetFeatureNames(String[] aFeatureNames) Feature names for a GeoRaster are currently ignored.voidsetFeatureTypes(String[] aFeatureTypes) Feature types for a GeoRaster are currently ignored.voidsetGeometryColumnName(String aName) Sets the name of the column containing the database raster.voidsetGeometryType(String aGeometryType) The geometry type of a GeoRaster is currently ignored.voidsetPrimaryFeatureIndex(int aPrimaryFeatureIndex) The primary feature index of a GeoRaster is currently ignored.voidsetSelectionFilter(String aSelectionFilter) A selection filter string , normally appended to the WHERE part of the select query.voidsetSelectionTables(String aSelectionTables) Sets the names of additional tables used in the select query.voidsetSRID(int aSRID) Sets the Spatial Reference ID number.voidsetTableName(String aName) Sets the name of the database table.voidSets the JDBC connection URL.Methods inherited from class com.luciad.format.raster.TLcdMultilevelRasterModelDescriptor
isElevationMethods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasureMethods inherited from interface com.luciad.model.ILcdModelDescriptor
getDisplayName, getSourceName
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
TLcdOracleGeoRasterModelDescriptor
public TLcdOracleGeoRasterModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aColumnName, String aSourceFileName, String aDisplayName) Creates a new TLcdOracleGeoRasterModelDescriptor with the given properties.- Parameters:
aDriver- the JDBC driver name.aURL- the JDBC connection URL.aConnectionProperties- the connection properties, including 'user' and 'password'.aTableName- the database table name.aColumnName- the column containing the georaster data
-
TLcdOracleGeoRasterModelDescriptor
Creates a new TLcdOracleGeoRasterModelDescriptor based on the given descriptor.- Parameters:
aDescriptor- the descriptor whose properties are to be copied.
-
-
Method Details
-
setElevation
protected void setElevation(boolean aElevation) Specifies whether the model contains elevation rasters.- Overrides:
setElevationin classTLcdMultilevelRasterModelDescriptor
-
setDriver
Sets the JDBC driver name.- Parameters:
aDriver- a JDBC driver.
-
getDriver
Returns the JDBC driver name.- Returns:
- a JDBC driver name.
-
setURL
Sets the JDBC connection URL.- Parameters:
aURL- aJDBC connection URL.
-
getURL
Returns the JDBC connection URL.- Returns:
- the JDBC connection URL.
-
setConnectionProperties
Sets the connection properties.- Parameters:
aConnectionProperties- the connection properties.
-
getConnectionProperties
Returns the connection properties.- Returns:
- the connection properties.
-
setTableName
Description copied from interface:ILcdDatabaseModelDescriptorSets the name of the database table.- Specified by:
setTableNamein interfaceILcdDatabaseModelDescriptor- Parameters:
aName- the name of the database table.
-
getTableName
Description copied from interface:ILcdDatabaseModelDescriptorReturns the name of the database table.- Specified by:
getTableNamein interfaceILcdDatabaseModelDescriptor- Returns:
- a table name.
-
setBounds
Description copied from interface:ILcdDatabaseModelDescriptorSets the bounds of the geometry.- Specified by:
setBoundsin interfaceILcdDatabaseModelDescriptor- Parameters:
aBounds- the bounds of the geometry.
-
getBounds
Description copied from interface:ILcdDatabaseModelDescriptorreturns the bounds of the geometry.- Specified by:
getBoundsin interfaceILcdDatabaseModelDescriptor- Returns:
- the bounds of the geometry.
-
getTypeName
Description copied from interface:ILcdModelDescriptorReturns the type/format name of the data source. The data format String is an easy means to identify a format. It is not guaranteed to be unique, so additional checks may be necessary. This can be mif or shape, for instance.- Specified by:
getTypeNamein interfaceILcdModelDescriptor- Overrides:
getTypeNamein classTLcdModelDescriptor- Returns:
- the type name of the data source.
-
getConnection
- Throws:
SQLException
-
setSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptorSets the names of additional tables used in the select query.- Specified by:
setSelectionTablesin interfaceILcdDatabaseModelDescriptor- Parameters:
aSelectionTables- a list of additional tables separated by columns.
-
getSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptorReturns the names of the additional tables used in the select query- Specified by:
getSelectionTablesin interfaceILcdDatabaseModelDescriptor- Returns:
- a list of additional tables, separated by columns.
-
setSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptorA selection filter string , normally appended to the WHERE part of the select query.- Specified by:
setSelectionFilterin interfaceILcdDatabaseModelDescriptor- Parameters:
aSelectionFilter- a selection filter string.
-
getSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptorReturns the string representing the selection filter.- Specified by:
getSelectionFilterin interfaceILcdDatabaseModelDescriptor- Returns:
- the selection filter.
-
setGeometryColumnName
Sets the name of the column containing the database raster.- Specified by:
setGeometryColumnNamein interfaceILcdDatabaseModelDescriptor- Parameters:
aName- the name of the column containing the database raster.
-
getGeometryColumnName
Returns the name of the column containing the database raster.- Specified by:
getGeometryColumnNamein interfaceILcdDatabaseModelDescriptor- Returns:
- the name of the column containing the database raster.
-
setFeatureNames
Feature names for a GeoRaster are currently ignored.- Specified by:
setFeatureNamesin interfaceILcdDatabaseModelDescriptor- Parameters:
aFeatureNames- a list of feature names.
-
getFeatureName
Feature names for a GeoRaster are currently ignored.- Specified by:
getFeatureNamein interfaceILcdDatabaseModelDescriptor- Specified by:
getFeatureNamein interfaceILcdFeaturedDescriptor- Parameters:
aIndex- the feature index.- Returns:
- the name corresponding to the given index.
-
setPrimaryFeatureIndex
public void setPrimaryFeatureIndex(int aPrimaryFeatureIndex) The primary feature index of a GeoRaster is currently ignored.- Specified by:
setPrimaryFeatureIndexin interfaceILcdDatabaseModelDescriptor- Parameters:
aPrimaryFeatureIndex- the primary feature index
-
getPrimaryFeatureIndex
public int getPrimaryFeatureIndex()The primary feature index of a GeoRaster is currently ignored.- Specified by:
getPrimaryFeatureIndexin interfaceILcdDatabaseModelDescriptor- Returns:
- the primary feature index.
-
setSRID
public void setSRID(int aSRID) Description copied from interface:ILcdDatabaseModelDescriptorSets the Spatial Reference ID number.- Specified by:
setSRIDin interfaceILcdDatabaseModelDescriptor- Parameters:
aSRID- a spatial reference ID.
-
getSRID
public int getSRID()Description copied from interface:ILcdDatabaseModelDescriptorReturns the Spatial Reference ID number.- Specified by:
getSRIDin interfaceILcdDatabaseModelDescriptor- Returns:
- the Spatial reference ID number.
-
setEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptorSets the ellipsoid of the database object's reference.- Specified by:
setEllipsoidin interfaceILcdDatabaseModelDescriptor- Parameters:
aEllipsoid- the ellipsoid of the database object's reference.
-
getEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptorReturns the ellipsoid of the database object reference.- Specified by:
getEllipsoidin interfaceILcdDatabaseModelDescriptor- Returns:
- an ellipsoid
-
setGeometryType
The geometry type of a GeoRaster is currently ignored.- Specified by:
setGeometryTypein interfaceILcdDatabaseModelDescriptor- Parameters:
aGeometryType- type of the geometry.
-
getGeometryType
The geometry type of a GeoRaster is currently ignored.- Specified by:
getGeometryTypein interfaceILcdDatabaseModelDescriptor- Returns:
- type of the geometry.
-
setFeatureTypes
Feature types for a GeoRaster are currently ignored.- Specified by:
setFeatureTypesin interfaceILcdDatabaseModelDescriptor- Parameters:
aFeatureTypes- the types of the features.
-
getFeatureType
Feature types for a GeoRaster are currently ignored.- Specified by:
getFeatureTypein interfaceILcdDatabaseModelDescriptor- Parameters:
aIndex- the feature index.- Returns:
- the feature type.
-
getColumnNames
Description copied from interface:ILcdDatabaseModelDescriptorConcatenates the main column name and the feature column names into a singleStringof comma-separated column names.- Specified by:
getColumnNamesin interfaceILcdDatabaseModelDescriptor- Returns:
- a String containing the comma-separated column names.
-
getColumnNamesAndTypes
Description copied from interface:ILcdDatabaseModelDescriptorConcatenates the main column name and type, and the feature column names and types into a singleStringof comma-separated column names and types.- Specified by:
getColumnNamesAndTypesin interfaceILcdDatabaseModelDescriptor- Returns:
- a String containing the main column name and type, and the feature column names and types, separated by commas.
-
close
public void close()Description copied from interface:ILcdDatabaseModelDescriptorCloses theConnectionof this descriptor, if it was opened.- Specified by:
closein interfaceILcdDatabaseModelDescriptor
-
setAlwaysCloseConnection
public void setAlwaysCloseConnection(boolean aAlwaysCloseConnection) -
isAlwaysCloseConnection
public boolean isAlwaysCloseConnection() -
clone
Creates a shallow clone of this descriptor.- Specified by:
clonein interfaceILcdDatabaseModelDescriptor- Overrides:
clonein classObject
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeaturedDescriptorReturns the number of features.- Specified by:
getFeatureCountin interfaceILcdFeaturedDescriptor- Returns:
- 0.
-
getFeatureIndex
Description copied from interface:ILcdFeaturedDescriptorReturns the index of the given feature name if it exists, -1 otherwise.- Specified by:
getFeatureIndexin interfaceILcdFeaturedDescriptor- Parameters:
aName- a feature name.- Returns:
- -1
-
getFeatureClass
Description copied from interface:ILcdFeaturedDescriptorReturns theClassof the feature at the given index.- Specified by:
getFeatureClassin interfaceILcdFeaturedDescriptor- Parameters:
aIndex- a valid feature index.- Returns:
- null.
-
getDataModel
Description copied from interface:ILcdDataModelDescriptorReturns the data model that describes the elements of the model. Note that not necessarily all data in the model will be of a type of this data model. Very likely, types from the dependencies of the returned data model are used as well.
In case the model accepts objects from multiple data models, an anonymous data model that depends on all these data models should be returned (see
TLcdDataModelBuilder.createAnonymousDataModel(java.util.Collection)).- Specified by:
getDataModelin interfaceILcdDataModelDescriptor- Returns:
- the data model that describes the elements of the model
-
getModelElementTypes
Description copied from interface:ILcdDataModelDescriptorReturns a set containing all the data types of which instances can be elements in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually elements in the model; but they are not required to do so.
Implementations should return
nullin case they don't know which element types are present in the model.For each element of the model associated with this model descriptor, the following holds true :
getModelElementTypes().contains( element.getDataType() ).- Specified by:
getModelElementTypesin interfaceILcdDataModelDescriptor- Returns:
- a set containing all the data types of which instances can be elements in the model associated with this descriptor
-
getModelTypes
Description copied from interface:ILcdDataModelDescriptorReturns a set containing all the types of which instances can be used (including both top-level elements and child objects) in the model associated with this descriptor. Implementations are free to limit the result to only include the types of which there are actually instances in the model; but they are not required to do so.
A simple and correct implementation would be to return
getDataModel().getTypes(). Implementations are encouraged to return a subset of this set if they can do so without spending an unreasonable amount of resources.Implementations should return
nullin case they don't know which types are present in the model.- Specified by:
getModelTypesin interfaceILcdDataModelDescriptor- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-