TerraLib 4.1
TeOracleSpatialPortal Class Reference

A class that implements a concept of record set to a ORACLE SPATIAL DBMS. More...

#include <TeOracleSpatial.h>

Inheritance diagram for TeOracleSpatialPortal:
TeOCIOraclePortal TeDatabasePortal

List of all members.

Public Member Functions

 TeOracleSpatialPortal (TeOracleSpatial *pDatabase)
 Constructor.
virtual ~TeOracleSpatialPortal ()
 Destructor.
bool querySDO (const string &q)
 Executes a SQL statement that uses operators and functions of the ORACLE SPATIAL.
Methods that return the geometry of the record set current row and fetch to the next row
bool getGeometry (TeGeometry **geom, bool &result)
bool fetchGeometry (TePolygon &poly)
bool fetchGeometry (TePolygon &poly, const unsigned int &initIndex)
bool fetchGeometry (TePolygonSet &polySet)
bool fetchGeometry (TeLine2D &line)
bool fetchGeometry (TeLine2D &line, const unsigned int &initIndex)
bool fetchGeometry (TeLineSet &lineSet)
bool fetchGeometry (TeNode &n)
bool fetchGeometry (TeNode &n, const unsigned int &initIndex)
bool fetchGeometry (TePoint &p)
bool fetchGeometry (TePoint &p, const unsigned int &initIndex)
bool fetchGeometry (TePointSet &pointSet)
bool fetchGeometry (TeCell &cell)
bool fetchGeometry (TeCell &cell, const unsigned int &initIndex)

Protected Member Functions

int getDimArraySize ()
 Gets the size of the element information array (SDO_ELEM_INFO type) of the record set current row.
bool getDimElement (int i, int &elem)
 Gets the i-th element element information array (SDO_ELEM_INFO type) of the record set current row.
int numberOfOrdinates ()
 Gets the number of ordinates of the coordinate array (SDO_ORDINATES type) of the record set current row.
bool getCoordinates (int i, TeCoord2D &coord)
 Gets the i-th coordinate from the coordinates array (SDO_ORDINATES type) of the record set current row.
bool getGeometryType (TeSDOGType &gType)
 Gets the geometry type of the record set current row.
int getSpatialReferenceId ()
 Gets the spatial reference associated to the SDO_GEOMETRY type of the record set current row.
bool getPointXYZ (double &x, double &y)
 Gets the point (x and y) associated to the SDO_POINT type of the record set current row.

Friends

class TeOracleSpatial

Detailed Description

A class that implements a concept of record set to a ORACLE SPATIAL DBMS.

This class is part of the driver of interface between TerraLib and ORACLE SPATIAL DBMS. It was developed using OCI (Oracle Call Interface) library.

See also:
TeOCIOraclePortal TeOCICursor

Constructor & Destructor Documentation

TeOracleSpatialPortal::TeOracleSpatialPortal ( TeOracleSpatial pDatabase) [inline]

Constructor.

virtual TeOracleSpatialPortal::~TeOracleSpatialPortal ( ) [inline, virtual]

Destructor.


Member Function Documentation

bool TeOracleSpatialPortal::fetchGeometry ( TePolygon poly) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TePolygon poly,
const unsigned int &  initIndex 
) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TeNode n) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TeNode n,
const unsigned int &  initIndex 
) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TePoint p) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TePoint p,
const unsigned int &  initIndex 
) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TePointSet pointSet)
bool TeOracleSpatialPortal::fetchGeometry ( TeCell cell) [virtual]

Reimplemented from TeDatabasePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TeLineSet lineSet)
bool TeOracleSpatialPortal::fetchGeometry ( TeCell cell,
const unsigned int &  initIndex 
) [virtual]

Reimplemented from TeDatabasePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TePolygonSet polySet)
bool TeOracleSpatialPortal::fetchGeometry ( TeLine2D line) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::fetchGeometry ( TeLine2D line,
const unsigned int &  initIndex 
) [virtual]

Reimplemented from TeOCIOraclePortal.

bool TeOracleSpatialPortal::getCoordinates ( int  i,
TeCoord2D coord 
) [protected]

Gets the i-th coordinate from the coordinates array (SDO_ORDINATES type) of the record set current row.

int TeOracleSpatialPortal::getDimArraySize ( ) [protected]

Gets the size of the element information array (SDO_ELEM_INFO type) of the record set current row.

bool TeOracleSpatialPortal::getDimElement ( int  i,
int &  elem 
) [protected]

Gets the i-th element element information array (SDO_ELEM_INFO type) of the record set current row.

bool TeOracleSpatialPortal::getGeometry ( TeGeometry **  geom,
bool &  result 
)
bool TeOracleSpatialPortal::getGeometryType ( TeSDOGType gType) [protected]

Gets the geometry type of the record set current row.

bool TeOracleSpatialPortal::getPointXYZ ( double &  x,
double &  y 
) [protected]

Gets the point (x and y) associated to the SDO_POINT type of the record set current row.

int TeOracleSpatialPortal::getSpatialReferenceId ( ) [protected]

Gets the spatial reference associated to the SDO_GEOMETRY type of the record set current row.

int TeOracleSpatialPortal::numberOfOrdinates ( ) [protected]

Gets the number of ordinates of the coordinate array (SDO_ORDINATES type) of the record set current row.

bool TeOracleSpatialPortal::querySDO ( const string q)

Executes a SQL statement that uses operators and functions of the ORACLE SPATIAL.


Friends And Related Function Documentation

friend class TeOracleSpatial [friend]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines