|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.oracle.IlvSDOTileLoader
ilog.views.maps.format.oracle.IlvDefaultSDOTileLoader
public class IlvDefaultSDOTileLoader
This tile loader loads a complete SDO layer with tiles that are equivalent to the SDO tiles.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 ILOG JViews file. |
| Methods inherited from class ilog.views.maps.format.oracle.IlvSDOTileLoader |
|---|
executeQuery, getConnection, isPersistent, release |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public String getLayerName()
public void setTileGroupingCount(short nb)
throws SQLException
SQLExceptionpublic short getTileGroupingCount()
setTileGroupingCount(short)
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectwrite in interface IlvTileLoaderwrite in class IlvSDOTileLoaderstream - 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 IlvSDOTileLoaderSQLException
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 IlvSDOTileLoadertile - 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 IlvTileLoaderload in class IlvSDOTileLoadertile - 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 IlvSDOTileLoaderSQLExceptionIlvTiledLayer.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 IlvSDOTileLoaderSQLExceptionpublic int getSDOTilingLevel()
public IlvCoordinateSystem getDefaultCoordinateSystem()
public void setDefaultCoordinateSystem(IlvCoordinateSystem defaultCoordinateSystem)
defaultCoordinateSystem - The defaultCoordinateSystem to set.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||