public class IlvSDOFeatureIterator extends Object implements IlvMapFeatureIterator
IlvMapFeature
objects. It supports the relational
implementation of Oracle Spatial.
The supported Oracle geometries are: POINT, LINESTRING and POLYGON.
IlvSDOWriter
Constructor and Description |
---|
IlvSDOFeatureIterator(Connection connection,
String query)
Initializes a feature iterator that can iterate over the result of
a specified query.
|
IlvSDOFeatureIterator(ResultSet resultSet)
Initializes a feature iterator that can iterate over a
ResultSet . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the resources allocated by the feature iterator.
|
IlvCoordinateSystem |
getCoordinateSystem()
Returns the spatial reference system that describes the coordinate
system of geometric coordinates of the map features.
|
IlvFeatureRenderer |
getDefaultFeatureRenderer()
Returns the default feature renderer.
|
IlvCoordinate |
getLowerRightCorner()
Returns a
null pointer. |
IlvMapFeature |
getNextFeature()
Converts the next SDO geometry of the iterator into an
IlvMapFeature object. |
IlvCoordinate |
getUpperLeftCorner()
Returns a
null pointer. |
boolean |
isGeoreferenced()
Returns
true if a coordinate system has been assigned to the iterator. |
boolean |
isLoadingAttributes()
Returns
false . |
void |
setCoordinateSystem(IlvCoordinateSystem cs)
Used to specify the source coordinate system of the geometries stored in the SDO database.
|
public IlvSDOFeatureIterator(ResultSet resultSet) throws SQLException
ResultSet
.
and return the SDO geometries as Rogue Wave JViews
IlvMapFeature
instances.resultSet
- The ResultSet
of a query to an SDO layer.SQLException
public IlvSDOFeatureIterator(Connection connection, String query) throws SQLException
connection
- The connection to an Oracle SDO database.query
- An SQL query to an SDO layer.SQLException
public boolean isGeoreferenced()
true
if a coordinate system has been assigned to the iterator.isGeoreferenced
in interface IlvMapFeatureIterator
setCoordinateSystem(ilog.views.maps.srs.coordsys.IlvCoordinateSystem)
public IlvFeatureRenderer getDefaultFeatureRenderer()
getDefaultFeatureRenderer
in interface IlvMapFeatureIterator
public IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface IlvMapFeatureIterator
null
if the coordinate system is unknown.public void setCoordinateSystem(IlvCoordinateSystem cs)
IlvMapFeature
s produced by
this iterator.cs
- The coordinate system of the iterator.public IlvCoordinate getUpperLeftCorner()
null
pointer.getUpperLeftCorner
in interface IlvMapFeatureIterator
public IlvCoordinate getLowerRightCorner()
null
pointer.getLowerRightCorner
in interface IlvMapFeatureIterator
public boolean isLoadingAttributes()
false
.public void dispose()
dispose
in interface IlvMapFeatureIterator
public IlvMapFeature getNextFeature() throws IOException
IlvMapFeature
object. The id
of the returned map feature is set to the SDO_GID of
the SDO geometry.getNextFeature
in interface IlvMapFeatureIterator
IOException
- if an error occurs while extracting data.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.