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
-
Constructor Summary
ConstructorDescriptionCreates 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.void
close()
Closes theConnection
of this descriptor, if it was opened.returns the bounds of the geometry.Concatenates the main column name and the feature column names into a singleString
of comma-separated column names.Concatenates the main column name and type, and the feature column names and types into a singleString
of 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 theClass
of the feature at the given index.int
Returns the number of features.int
getFeatureIndex
(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.int
The 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 queryint
getSRID()
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.boolean
void
setAlwaysCloseConnection
(boolean aAlwaysCloseConnection) void
setBounds
(ILcdBounds aBounds) Sets the bounds of the geometry.void
setConnectionProperties
(Properties aConnectionProperties) Sets the connection properties.void
Sets the JDBC driver name.protected void
setElevation
(boolean aElevation) Specifies whether the model contains elevation rasters.void
setEllipsoid
(ILcdEllipsoid aEllipsoid) Sets the ellipsoid of the database object's reference.void
setFeatureNames
(String[] aFeatureNames) Feature names for a GeoRaster are currently ignored.void
setFeatureTypes
(String[] aFeatureTypes) Feature types for a GeoRaster are currently ignored.void
setGeometryColumnName
(String aName) Sets the name of the column containing the database raster.void
setGeometryType
(String aGeometryType) The geometry type of a GeoRaster is currently ignored.void
setPrimaryFeatureIndex
(int aPrimaryFeatureIndex) The primary feature index of a GeoRaster is currently ignored.void
setSelectionFilter
(String aSelectionFilter) A selection filter string , normally appended to the WHERE part of the select query.void
setSelectionTables
(String aSelectionTables) Sets the names of additional tables used in the select query.void
setSRID
(int aSRID) Sets the Spatial Reference ID number.void
setTableName
(String aName) Sets the name of the database table.void
Sets the JDBC connection URL.Methods inherited from class com.luciad.format.raster.TLcdMultilevelRasterModelDescriptor
isElevation
Methods inherited from class com.luciad.model.TLcdModelDescriptor
getDisplayName, getSourceName, setDisplayName, setSourceName, setTypeName, sourceNameToDisplayName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.util.ILcdFeaturedDescriptor
getFeatureUnitOfMeasure
Methods 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:
setElevation
in 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:ILcdDatabaseModelDescriptor
Sets the name of the database table.- Specified by:
setTableName
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aName
- the name of the database table.
-
getTableName
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the name of the database table.- Specified by:
getTableName
in interfaceILcdDatabaseModelDescriptor
- Returns:
- a table name.
-
setBounds
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the bounds of the geometry.- Specified by:
setBounds
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aBounds
- the bounds of the geometry.
-
getBounds
Description copied from interface:ILcdDatabaseModelDescriptor
returns the bounds of the geometry.- Specified by:
getBounds
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the bounds of the geometry.
-
getTypeName
Description copied from interface:ILcdModelDescriptor
Returns 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:
getTypeName
in interfaceILcdModelDescriptor
- Overrides:
getTypeName
in classTLcdModelDescriptor
- Returns:
- the type name of the data source.
-
getConnection
- Throws:
SQLException
-
setSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the names of additional tables used in the select query.- Specified by:
setSelectionTables
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aSelectionTables
- a list of additional tables separated by columns.
-
getSelectionTables
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the names of the additional tables used in the select query- Specified by:
getSelectionTables
in interfaceILcdDatabaseModelDescriptor
- Returns:
- a list of additional tables, separated by columns.
-
setSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptor
A selection filter string , normally appended to the WHERE part of the select query.- Specified by:
setSelectionFilter
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aSelectionFilter
- a selection filter string.
-
getSelectionFilter
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the string representing the selection filter.- Specified by:
getSelectionFilter
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the selection filter.
-
setGeometryColumnName
Sets the name of the column containing the database raster.- Specified by:
setGeometryColumnName
in 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:
getGeometryColumnName
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the name of the column containing the database raster.
-
setFeatureNames
Feature names for a GeoRaster are currently ignored.- Specified by:
setFeatureNames
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aFeatureNames
- a list of feature names.
-
getFeatureName
Feature names for a GeoRaster are currently ignored.- Specified by:
getFeatureName
in interfaceILcdDatabaseModelDescriptor
- Specified by:
getFeatureName
in 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:
setPrimaryFeatureIndex
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aPrimaryFeatureIndex
- the primary feature index
-
getPrimaryFeatureIndex
public int getPrimaryFeatureIndex()The primary feature index of a GeoRaster is currently ignored.- Specified by:
getPrimaryFeatureIndex
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the primary feature index.
-
setSRID
public void setSRID(int aSRID) Description copied from interface:ILcdDatabaseModelDescriptor
Sets the Spatial Reference ID number.- Specified by:
setSRID
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aSRID
- a spatial reference ID.
-
getSRID
public int getSRID()Description copied from interface:ILcdDatabaseModelDescriptor
Returns the Spatial Reference ID number.- Specified by:
getSRID
in interfaceILcdDatabaseModelDescriptor
- Returns:
- the Spatial reference ID number.
-
setEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptor
Sets the ellipsoid of the database object's reference.- Specified by:
setEllipsoid
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aEllipsoid
- the ellipsoid of the database object's reference.
-
getEllipsoid
Description copied from interface:ILcdDatabaseModelDescriptor
Returns the ellipsoid of the database object reference.- Specified by:
getEllipsoid
in interfaceILcdDatabaseModelDescriptor
- Returns:
- an ellipsoid
-
setGeometryType
The geometry type of a GeoRaster is currently ignored.- Specified by:
setGeometryType
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aGeometryType
- type of the geometry.
-
getGeometryType
The geometry type of a GeoRaster is currently ignored.- Specified by:
getGeometryType
in interfaceILcdDatabaseModelDescriptor
- Returns:
- type of the geometry.
-
setFeatureTypes
Feature types for a GeoRaster are currently ignored.- Specified by:
setFeatureTypes
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aFeatureTypes
- the types of the features.
-
getFeatureType
Feature types for a GeoRaster are currently ignored.- Specified by:
getFeatureType
in interfaceILcdDatabaseModelDescriptor
- Parameters:
aIndex
- the feature index.- Returns:
- the feature type.
-
getColumnNames
Description copied from interface:ILcdDatabaseModelDescriptor
Concatenates the main column name and the feature column names into a singleString
of comma-separated column names.- Specified by:
getColumnNames
in interfaceILcdDatabaseModelDescriptor
- Returns:
- a String containing the comma-separated column names.
-
getColumnNamesAndTypes
Description copied from interface:ILcdDatabaseModelDescriptor
Concatenates the main column name and type, and the feature column names and types into a singleString
of comma-separated column names and types.- Specified by:
getColumnNamesAndTypes
in 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:ILcdDatabaseModelDescriptor
Closes theConnection
of this descriptor, if it was opened.- Specified by:
close
in interfaceILcdDatabaseModelDescriptor
-
setAlwaysCloseConnection
public void setAlwaysCloseConnection(boolean aAlwaysCloseConnection) -
isAlwaysCloseConnection
public boolean isAlwaysCloseConnection() -
clone
Creates a shallow clone of this descriptor.- Specified by:
clone
in interfaceILcdDatabaseModelDescriptor
- Overrides:
clone
in classObject
-
getFeatureCount
public int getFeatureCount()Description copied from interface:ILcdFeaturedDescriptor
Returns the number of features.- Specified by:
getFeatureCount
in interfaceILcdFeaturedDescriptor
- Returns:
- 0.
-
getFeatureIndex
Description copied from interface:ILcdFeaturedDescriptor
Returns the index of the given feature name if it exists, -1 otherwise.- Specified by:
getFeatureIndex
in interfaceILcdFeaturedDescriptor
- Parameters:
aName
- a feature name.- Returns:
- -1
-
getFeatureClass
Description copied from interface:ILcdFeaturedDescriptor
Returns theClass
of the feature at the given index.- Specified by:
getFeatureClass
in interfaceILcdFeaturedDescriptor
- Parameters:
aIndex
- a valid feature index.- Returns:
- null.
-
getDataModel
Description copied from interface:ILcdDataModelDescriptor
Returns 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:
getDataModel
in interfaceILcdDataModelDescriptor
- Returns:
- the data model that describes the elements of the model
-
getModelElementTypes
Description copied from interface:ILcdDataModelDescriptor
Returns 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
null
in 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:
getModelElementTypes
in 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:ILcdDataModelDescriptor
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. 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
null
in case they don't know which types are present in the model.- Specified by:
getModelTypes
in interfaceILcdDataModelDescriptor
- Returns:
- a set containing all the data types of which instances can be used in the model associated with this descriptor
-