public static class IlvSDODataSource.OracleIterator extends IlvMapDelegateFeatureIterator implements IlvMapRegionOfInterestIterator, IlvPersistentObject
IlvMapRegionOfInterestIterator
to go over an
Oracle SDO connection.Constructor and Description |
---|
OracleIterator(IlvInputStream stream)
Reads an
OracleIterator from the specified input
stream. |
OracleIterator(IlvSDOConnection connection,
boolean isObjectModel,
String layerName)
Creates an
OracleIterator from a specified Oracle SDO
connection. |
OracleIterator(IlvSDOConnection connection,
boolean isObjectModel,
String layerName,
IlvThreadedActivityMonitor tmonitor)
Creates an
OracleIterator from a specified Oracle SDO
connection. |
Modifier and Type | Method and Description |
---|---|
IlvCoordinateSystem |
getCoordinateSystem()
Returns the spatial reference system that describes the coordinate
system of geometric coordinates of the map features.
|
Rectangle2D |
getLatLonBounds()
Returns the bounds of all objects returned by this feature iterator.
|
IlvMapFeature |
getNextFeature()
Returns the next map feature of the iterator.
|
IlvRect |
getSize()
Returns the bounds of all objects returned by this feature iterator.
|
void |
restart()
Rewinds the iterator for new use.
|
void |
setRegionOfInterest(double minX,
double minY,
double maxX,
double maxY)
Sets the region of interest to return features for.
|
void |
write(IlvOutputStream stream)
Writes an
OracleIterator to the specified input stream. |
dispose, getDefaultFeatureRenderer, getDelegate, getLowerRightCorner, getUpperLeftCorner, isGeoreferenced, setDelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getDefaultFeatureRenderer, getLowerRightCorner, getUpperLeftCorner, isGeoreferenced
public OracleIterator(IlvSDOConnection connection, boolean isObjectModel, String layerName)
OracleIterator
from a specified Oracle SDO
connection.connection
- The SDO connection to read map features from.isObjectModel
- Set to true
if the Oracle
database follows the object model. Set to false
for
the relational model.layerName
- The name of the layer to fetch.public OracleIterator(IlvSDOConnection connection, boolean isObjectModel, String layerName, IlvThreadedActivityMonitor tmonitor)
OracleIterator
from a specified Oracle SDO
connection.connection
- The SDO connection to read map features from.isObjectModel
- Set to true
if the Oracle
database follows the object model. Set to false
for
the relational model.layerName
- The name of the layer to fetch.tmonitor
- Thread monitor or null.public OracleIterator(IlvInputStream stream) throws IlvReadFileException
OracleIterator
from the specified input
stream.stream
- The IlvInputStream
to read from.IlvReadFileException
- if an exception occurs during the
reading process.public void write(IlvOutputStream stream) throws IOException
OracleIterator
to the specified input stream.write
in interface IlvPersistentObject
stream
- The IlvOutputStream
to write to.IOException
- if an exception occurs during the writing process.public IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface IlvMapFeatureIterator
getCoordinateSystem
in class IlvMapDelegateFeatureIterator
null
if the
coordinate system is unknown.IlvMapFeatureIterator.getCoordinateSystem()
public void restart()
restart
in interface IlvMapReusableFeatureIterator
restart
in class IlvMapDelegateFeatureIterator
IlvMapReusableFeatureIterator.restart()
public void setRegionOfInterest(double minX, double minY, double maxX, double maxY)
setRegionOfInterest
in interface IlvMapRegionOfInterestIterator
minX
- The left coordinate of the area of interest.minY
- The bottom coordinate of the area of interest.maxX
- The right coordinate of the area of interest.maxY
- The top coordinate of the area of interest.IlvMapRegionOfInterestIterator.setRegionOfInterest(double, double, double, double)
public IlvMapFeature getNextFeature() throws IOException
getNextFeature
in interface IlvMapFeatureIterator
getNextFeature
in class IlvMapDelegateFeatureIterator
null
if the iteration is finished.IOException
IlvMapFeatureIterator.getNextFeature()
public IlvRect getSize() throws SQLException
SQLException
public Rectangle2D getLatLonBounds()
getLatLonBounds
in interface IlvMapRegionOfInterestIterator
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.