public class IlvDefaultSDOTileLoader extends IlvSDOTileLoader
Constructor and Description |
---|
IlvDefaultSDOTileLoader(IlvInputStream stream)
Reads the tile loader from an
IlvInputStream . |
IlvDefaultSDOTileLoader(IlvSDOConnection connection,
String layerName)
Initializes an instance of
IlvDefaultSDOTileLoader ,
which loads tiles from the specified layer of an SDO database. |
Modifier and Type | Method and Description |
---|---|
void |
connectionRestored()
This method is called by the
IlvSDOLayer when
it is read from an .ivl file, and after the connection to
an SDO database has been restored. |
IlvCoordinateSystem |
getDefaultCoordinateSystem()
Returns the default IlvCoordinateSystem used to render map features when they do not have a specified one.
|
protected IlvSDOFeatureIterator |
getFeatureIterator(ResultSet rset)
Returns the instance of
IlvSDOFeatureIterator that is used by the tile loader. |
String |
getLayerName()
Returns the name of the SDO layer read by this tile loader.
|
ResultSet |
getResultSet(IlvTile tile)
Returns a
ResultSet containing all the geometries that
intersect the tile. |
String |
getSDOCode(IlvTile tile)
Returns the SDO code associated with the tile.
|
int |
getSDOTilingLevel()
Returns the SDO tiling level of the SDO layer.
|
IlvRect |
getSize()
Returns the size of the tile loader.
|
short |
getTileGroupingCount()
Returns the number of tiles to be loaded in one unique request.
|
IlvRect |
getTileOrigin()
Returns the bounding box of the upper-left SDO tile.
|
void |
load(IlvTile tile)
Loads a tile from the Oracle database and adds the graphic objects
to the layer of the tile.
|
void |
setDefaultCoordinateSystem(IlvCoordinateSystem defaultCoordinateSystem)
Sets the default IlvCoordinateSystem used to render map features when they do not have a specified one.
|
void |
setTileGroupingCount(short nb)
Sets the number of tiles to be loaded in one unique request.
|
void |
write(IlvOutputStream stream)
Writes the tile loader to a Perforce JViews file.
|
executeQuery, getConnection, isPersistent, release
public IlvDefaultSDOTileLoader(IlvSDOConnection connection, String layerName) throws SQLException
IlvDefaultSDOTileLoader
,
which loads tiles from the specified layer of an SDO database.connection
- The connection to the database.layerName
- The name of the layer.SQLException
- if an error occurs during the initialization.public IlvDefaultSDOTileLoader(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
.stream
- The input stream.IlvReadFileException
- if an error occurs while reading.public String getLayerName()
public void setTileGroupingCount(short nb) throws SQLException
SQLException
public short getTileGroupingCount()
setTileGroupingCount(short)
public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in interface IlvTileLoader
write
in class IlvSDOTileLoader
stream
- The output stream.IOException
- if a write exception occurs.public String getSDOCode(IlvTile tile)
tile
- The tile for the load-on-demand mechanism.public IlvRect getTileOrigin() throws SQLException
getTileOrigin
in class IlvSDOTileLoader
SQLException
public ResultSet getResultSet(IlvTile tile) throws SQLException
ResultSet
containing all the geometries that
intersect the tile. This method is called by the
load(IlvTile tile)
method to define the list
of geometries that have to be loaded in a tile. The implementation
of this class returns all the geometries that have the same SDO_CODE
as the specified tile.getResultSet
in class IlvSDOTileLoader
tile
- The tile.SQLException
- if an error occurs while retrieving the
geometries.getSDOCode(ilog.views.tiling.IlvTile)
protected IlvSDOFeatureIterator getFeatureIterator(ResultSet rset) throws SQLException
IlvSDOFeatureIterator
that is used by the tile loader.
You can override this method in order to use your own feature iterator.rset
- The ResultSet
from which geometries are
read.IlvSDOFeatureIterator
used by the tile loader.SQLException
public void load(IlvTile tile) throws Exception
getResultSet
to get the SDO geometries, transforms them into graphic objects
using the renderer of the layer, and then adds the objects to the layer.load
in interface IlvTileLoader
load
in class IlvSDOTileLoader
tile
- The tile to load.Exception
- if an error occurs while loading the tile.getResultSet(ilog.views.tiling.IlvTile)
public IlvRect getSize() throws SQLException
getSize
in class IlvSDOTileLoader
SQLException
IlvTiledLayer.getSize()
public void connectionRestored() throws SQLException
IlvSDOLayer
when
it is read from an .ivl
file, and after the connection to
an SDO database has been restored.
When the connection to the database has been restored, this method
collects the information that will allow the load-on-demand to work.connectionRestored
in class IlvSDOTileLoader
SQLException
public int getSDOTilingLevel()
public IlvCoordinateSystem getDefaultCoordinateSystem()
public void setDefaultCoordinateSystem(IlvCoordinateSystem defaultCoordinateSystem)
defaultCoordinateSystem
- The defaultCoordinateSystem to set.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.