rwlogo

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
List of all members | Public Member Functions | Static Public Member Functions | Friends
IlvSDOFeatureIterator Class Reference

This class converts Oracle SDO geometries retrieved from an Oracle database into IlvMapFeature objects. More...

#include <ilviews/maps/format/oracle/sdoread.h>

Inheritance diagram for IlvSDOFeatureIterator:
IlvMapFeatureIterator

Public Member Functions

 IlvSDOFeatureIterator (IldRequest *resultSet)
 Initializes a feature iterator that can iterate over an IldRequest and returns the SDO geometries as IlvMapFeature instances. More...
 
 IlvSDOFeatureIterator (IldDbms *dbms, const char *query)
 Initializes a feature iterator that can iterate over the result of a specified query. More...
 
virtual IlvFeatureRenderergetDefaultFeatureRenderer (IlvDisplay *display)
 Returns the default renderer for this feature iterator. More...
 
IlvMapsError getInitStatus () const
 Returns the error code that may have happened during the iterator initialization.
 
virtual IlBoolean getLowerRightCorner (IlvCoordinate &coord) const
 Returns IlFalse.
 
virtual const IlvMapFeaturegetNextFeature (IlvMapsError &status)
 Converts the next SDO geometry of the iterator into an IlvMapFeature object. More...
 
virtual IlvMapFeatureIdgetNextFeatureId (IlvMapsError &status)
 Returns the feature ID for the next object. More...
 
const IlvProjectiongetProjection () const
 Returns 0 unless a source projection has been assigned to the iterator. More...
 
virtual IlBoolean getUpperLeftCorner (IlvCoordinate &coord) const
 Returns IlFalse.
 
IlBoolean isGeoreferenced () const
 Returns IlTrue if a source projection has been assigned to the iterator.
 
void setSourceProjection (IlvProjection *projection)
 Used to specify the source projection of the geometries stored in the SDO database. More...
 
virtual IlBoolean skipNextFeature (IlvMapsError &status)
 Skips the next feature. More...
 
- Public Member Functions inherited from IlvMapFeatureIterator
virtual IlvClassInfogetClassInfo () const =0
 Returns the class information for this feature iterator. More...
 

Static Public Member Functions

static IlvMapsError BadRequestError ()
 Returns the error indicating that the request passed to the constructor is invalid.
 
static IlvMapsError NoMoreRowError ()
 Returns the error indicating that there is no more row.
 
- Static Public Member Functions inherited from IlvMapFeatureIterator
static IlvClassInfoClassInfo ()
 Returns the class information of the class. More...
 
static IlvClassInfo ** ClassInfoRef ()
 Returns the address of the class information of the class. More...
 

Friends

class IlvDefaultSDOTileLoader
 

Detailed Description

This class converts Oracle SDO geometries retrieved from an Oracle database into IlvMapFeature objects.

Library: ilvdbmaps

It supports the relational implementation of Oracle SDO. The supported Oracle geometries are: POINT, LINESTRING and POLYGON.

See Also
IlvSDOWriter
IlvMapFeature

Constructor & Destructor Documentation

IlvSDOFeatureIterator::IlvSDOFeatureIterator ( IldRequest *  resultSet)

Initializes a feature iterator that can iterate over an IldRequest and returns the SDO geometries as IlvMapFeature instances.

Parameters
resultSetThe IldRequest containing the result set of an SDO layer query. A typical query is for instance select from ROADS_SDOGEOM order by 1, 2, 4.
See Also
IlvMapFeature
IlvSDOFeatureIterator::IlvSDOFeatureIterator ( IldDbms *  dbms,
const char *  query 
)

Initializes a feature iterator that can iterate over the result of a specified query.

Parameters
dbmsThe IldDbms connected to the Oracle Data Base.
queryAn SQL query to an SDO layer. A typical query is for instance select from ROADS_SDOGEOM order by 1, 2, 4.

Member Function Documentation

virtual IlvFeatureRenderer* IlvSDOFeatureIterator::getDefaultFeatureRenderer ( IlvDisplay display)
virtual

Returns the default renderer for this feature iterator.

Returns a renderer that can be used to translate the map features returned by this iterator into graphic objects. Feature iterators that store some rendering information in the attributes of the map features, such as color, text font, line thickness and so on, can return a specific renderer which is able to take these attributes into account during the rendering process.

Returns
The default renderer for this feature iterator.

Implements IlvMapFeatureIterator.

virtual const IlvMapFeature* IlvSDOFeatureIterator::getNextFeature ( IlvMapsError &  status)
virtual

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.

Parameters
statusThe error that may have been produced by the method.

Implements IlvMapFeatureIterator.

virtual IlvMapFeatureId* IlvSDOFeatureIterator::getNextFeatureId ( IlvMapsError &  status)
virtual

Returns the feature ID for the next object.

Returns
The next feature ID or 0 if no more feature ID is available.
Parameters
statusThe error that may have been produced by the method. It can be a NoMoreRowError() error.
const IlvProjection* IlvSDOFeatureIterator::getProjection ( ) const
virtual

Returns 0 unless a source projection has been assigned to the iterator.

See Also
IlvSDOFeatureIterator::setSourceProjection

Implements IlvMapFeatureIterator.

void IlvSDOFeatureIterator::setSourceProjection ( IlvProjection projection)
virtual

Used to specify the source projection of the geometries stored in the SDO database.

The projection will be assigned to the IlvMapFeature produced by this iterator.

Parameters
projectionThe projection of the geometries stored in the database.

Reimplemented from IlvMapFeatureIterator.

virtual IlBoolean IlvSDOFeatureIterator::skipNextFeature ( IlvMapsError &  status)
virtual

Skips the next feature.

Returns
IlFalse if no more feature is available.
Parameters
statusThe error that may have been produced by the method. It can be a NoMoreRowError() error.

© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.