public class SpatialDAO extends AbstractDAO
Constructor and Description |
---|
SpatialDAO(java.sql.Connection conn, NFEModel model)
Creates a SpatialDAO with the specified connection and model.
|
Modifier and Type | Method and Description |
---|---|
void |
createNFEGeometryMetadata(java.lang.String tableName, java.lang.String geomColumn, NFEGeometryDescriptor geomDesc)
Creates a spatial geometry metadata.
|
void |
createSpatialIndex(java.lang.String indexName, java.lang.String tableName, java.lang.String spatialColumn)
Creates the spatial index.
|
void |
createStyle(Style style, java.lang.String styleName)
Creates a style record in the view user_sdo_styles.
|
void |
deleteStyle(NFEFeatureClass nfeFeatureClass)
Deletes the styles related to the specified feature class.
|
void |
deleteStyles(NFEFeatureLayer nfeFeatureLayer)
Deletes the styles related to the specified feature layer.
|
JGeometry |
fetchGeometryLayerMBR(java.lang.String tableName, java.lang.String geomColumnName)
Returns the minimum bounding rectangle (MBR) of the geometries in the specified table and column.
|
NFEGeometryDescriptor |
fetchGeometryMetadata(java.lang.String tableName, java.lang.String columnName)
Returns the metadata information for the specified geometry column.
|
SRS |
fetchSRS(long srid)
Returns the spatial reference system (SRS) referred by the specified Spatial Reference System Identifier (SRID).
|
void |
updateStyle(Style style, java.lang.String styleName)
Updates the style record of the specified style in the view user_sdo_styles.
|
getConnection, getModel, getSQLValidator
public SpatialDAO(java.sql.Connection conn, NFEModel model)
conn
- connectionmodel
- modelpublic NFEGeometryDescriptor fetchGeometryMetadata(java.lang.String tableName, java.lang.String columnName) throws NFEIOException
tableName
- column's tablecolumnName
- geometry column nameNFEIOException
- if an NFE error occurs.public void createNFEGeometryMetadata(java.lang.String tableName, java.lang.String geomColumn, NFEGeometryDescriptor geomDesc) throws NFEIOException
tableName
- column's tablegeomColumn
- the geometry column namegeomDesc
- geometry descriptor used to access the SRID and the dimensions.NFEIOException
- if an NFE error occurs.public void createSpatialIndex(java.lang.String indexName, java.lang.String tableName, java.lang.String spatialColumn) throws NFEIOException
indexName
- index nametableName
- index table namespatialColumn
- index geometry columnNFEIOException
- if an NFE error occurs.public void createStyle(Style style, java.lang.String styleName) throws NFEIOException
style
- stylestyleName
- style nameNFEIOException
- if an NFE error occurs.public void updateStyle(Style style, java.lang.String styleName) throws NFEIOException
style
- stylestyleName
- style nameNFEIOException
- if an NFE error occurs.public void deleteStyles(NFEFeatureLayer nfeFeatureLayer) throws NFEIOException
nfeFeatureLayer
- feature layerNFEIOException
- if an NFE error occurs.public void deleteStyle(NFEFeatureClass nfeFeatureClass) throws NFEIOException
nfeFeatureClass
- feature classNFEIOException
- if an NFE error occurs.public JGeometry fetchGeometryLayerMBR(java.lang.String tableName, java.lang.String geomColumnName) throws NFEIOException
tableName
- table namegeomColumnName
- geometry column nameNFEIOException
- if an NFE error occurs.public SRS fetchSRS(long srid) throws NFEIOException
srid
- SRIDNFEIOException
- if an NFE error occurs.