ilog.views.maps.format.oracle
Class IlvSDOFeatureIterator

java.lang.Object
  extended by ilog.views.maps.format.oracle.IlvSDOFeatureIterator
All Implemented Interfaces:
IlvMapFeatureIterator

public class IlvSDOFeatureIterator
extends Object
implements IlvMapFeatureIterator

This class converts Oracle SDO geometries retrieved from an Oracle database into ILOG JViews IlvMapFeature objects. It supports the relational implementation of Oracle Spatial.

The supported Oracle geometries are: POINT, LINESTRING and POLYGON.

Since:
JViews 3.0
See Also:
IlvSDOWriter

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvSDOFeatureIterator

public IlvSDOFeatureIterator(ResultSet resultSet)
                      throws SQLException
Initializes a feature iterator that can iterate over a ResultSet. and return the SDO geometries as ILOG JViews IlvMapFeature instances.

Parameters:
resultSet - The ResultSet of a query to an SDO layer.
Throws:
SQLException

IlvSDOFeatureIterator

public IlvSDOFeatureIterator(Connection connection,
                             String query)
                      throws SQLException
Initializes a feature iterator that can iterate over the result of a specified query.

Parameters:
connection - The connection to an Oracle SDO database.
query - An SQL query to an SDO layer.
Throws:
SQLException
Method Detail

isGeoreferenced

public boolean isGeoreferenced()
Returns true if a coordinate system has been assigned to the iterator.

Specified by:
isGeoreferenced in interface IlvMapFeatureIterator
See Also:
setCoordinateSystem(ilog.views.maps.srs.coordsys.IlvCoordinateSystem)

getDefaultFeatureRenderer

public IlvFeatureRenderer getDefaultFeatureRenderer()
Returns the default feature renderer.

Specified by:
getDefaultFeatureRenderer in interface IlvMapFeatureIterator

getCoordinateSystem

public IlvCoordinateSystem getCoordinateSystem()
Returns the spatial reference system that describes the coordinate system of geometric coordinates of the map features.

Specified by:
getCoordinateSystem in interface IlvMapFeatureIterator
Returns:
The coordinate system, or null if the coordinate system is unknown.
Since:
JViews 5.0

setCoordinateSystem

public void setCoordinateSystem(IlvCoordinateSystem cs)
Used to specify the source coordinate system of the geometries stored in the SDO database. This coordinate system will be assigned to IlvMapFeatures produced by this iterator.

Parameters:
cs - The coordinate system of the iterator.
Since:
JViews 5.0

getUpperLeftCorner

public IlvCoordinate getUpperLeftCorner()
Returns a null pointer.

Specified by:
getUpperLeftCorner in interface IlvMapFeatureIterator

getLowerRightCorner

public IlvCoordinate getLowerRightCorner()
Returns a null pointer.

Specified by:
getLowerRightCorner in interface IlvMapFeatureIterator

isLoadingAttributes

public boolean isLoadingAttributes()
Returns false.


dispose

public void dispose()
Releases the resources allocated by the feature iterator.

Specified by:
dispose in interface IlvMapFeatureIterator

getNextFeature

public IlvMapFeature getNextFeature()
                             throws IOException
Converts the next SDO geometry of the iterator into an IlvMapFeature object. The id of the returned map feature is set to the SDO_GID of the SDO geometry.

Specified by:
getNextFeature in interface IlvMapFeatureIterator
Throws:
IOException - if an error occurs while extracting data.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.