Ogr Class Reference

OGR C API. More...

#include <Ogr.h>

List of all members.

Public Member Functions

 Ogr (void)
 Constructor.
 ~Ogr (void)
 Destructor.
bool OpenSource (string filename, string &epsg, string &query, string &error)
 Opens source data.
bool CloseSource (void)
 Closes source data.
bool OpenDriver (string drivername, string error=0)
 Opens target driver.
bool OpenTarget (string filename, int projection=0, bool update=0)
 Opens target.
bool CloseTarget (void)
 Closes Target.
bool Execute (string=0)
 Execute conversion.
bool Prepare (int &nbFeat, string=0)
 Prepare data for conversion.
bool Process (void)
 Process a feature.

Private Member Functions

bool Error (OGRErr e, string &s)
 OGR errors.

Private Attributes

OGRSFDriverH formatDriver
OGRDataSourceH sourceData
OGRDataSourceH targetData
OGRLayerH squeryLayer
OGRLayerH sourceLayer
OGRLayerH targetLayer
OGRSpatialReferenceH sourceSRS
OGRSpatialReferenceH targetSRS
OGRFeatureDefnH sourceLayerDefn
OGRwkbGeometryType sourceLayerGeom
OGRGeometryH sourceGeom
string sourceName
string sourceLayerName
string targetName
string error

Detailed Description

OGR C API.

Author:
Olivier Pilotte

Definition at line 48 of file Ogr.h.


Member Function Documentation

bool Ogr::CloseSource ( void   ) 

Closes source data.

Returns:
true on success

Definition at line 94 of file Ogr.cpp.

bool Ogr::CloseTarget ( void   ) 

Closes Target.

Returns:
true on success

Definition at line 194 of file Ogr.cpp.

bool Ogr::Error ( OGRErr  e,
string &  s 
) [private]

OGR errors.

Parameters:
e : OGR error
&s : error text
Returns:
true if error

Definition at line 282 of file Ogr.cpp.

bool Ogr::Execute ( string  query = 0  ) 

Execute conversion.

Parameters:
query : source sql query
Returns:
true on success

Definition at line 208 of file Ogr.cpp.

bool Ogr::OpenDriver ( string  drivername,
string  error = 0 
)

Opens target driver.

Parameters:
drivername : selected driver
error : error text
Returns:
true on success

Definition at line 108 of file Ogr.cpp.

bool Ogr::OpenSource ( string  filename,
string &  epsg = 0,
string &  query = 0,
string &  error = 0 
)

Opens source data.

Parameters:
filename : source filename
&epsg : epsg code
&query : sql query
&error : error text
Returns:
true on success

Definition at line 42 of file Ogr.cpp.

bool Ogr::OpenTarget ( string  filename,
int  projection = 0,
bool  update = 0 
)

Opens target.

Parameters:
filename : target filename
projection : epsg code
update : update mode
Returns:
true on success

Definition at line 122 of file Ogr.cpp.

bool Ogr::Prepare ( int &  nbFeat,
string  query = 0 
)

Prepare data for conversion.

Parameters:
nbFeat : number of features
query : source sql query
Returns:
true on success

Definition at line 228 of file Ogr.cpp.

bool Ogr::Process ( void   ) 

Process a feature.

Returns:
true on success

Definition at line 259 of file Ogr.cpp.


The documentation for this class was generated from the following files:

Generated on Sat Oct 31 13:37:25 2009 for ogr2gui by  doxygen 1.6.1