| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes
TeQuerierSHP Class Reference

A class responsible for loading geometries and its attributes from a shape file. More...

`#include <TeQuerierSHP.h>`

Inheritance diagram for TeQuerierSHP:

List of all members.

## Public Member Functions

| TeQuerierSHP (TeQuerierParams *params)
| Constructor from a set of parameters.
string | fileName ()
| Returns the file name.
bool | loadInstances (TeTSEntry *ent=0)
| Load information about the geometries and attributes of the shape file.
bool | fetchInstance (TeSTInstance &stoi)
| Gets the current entity and moves to the next one. Returns if there is a next entity.
bool | loadGeometries (TeMultiGeometry &geometries, unsigned int &index)
| Loads all geometries of the index-th geometry representation.
bool | loadGeometries (TeMultiGeometry &geometries)
| Loads all geometries.

## Protected Attributes

SHPHandle | hSHP
| handle to the file that stores geometries (.shp) of the shapefile format
DBFHandle | hDBF
| handle to the file that stores attributes (.dbf) of the shapefile format
int | nEntities
| number of entities in the shape file
int | curEntity
| current entity index used to traverse all entities of the shape file
int | nShapeType
| geometry type of the shape file

## Detailed Description

A class responsible for loading geometries and its attributes from a shape file.

This class implements a mechanism that is responsible for loading geometries and its attributes from a shape file (.shp file). Each entity (geometries and attributes) of the shape file is represented through the TeSTInstance class.

See also:
  TeQuerierImpl TeQuerierParams TeSTInstance

## Constructor & Destructor Documentation

TeQuerierSHP::TeQuerierSHP | ( | TeQuerierParams * | params | ) | `[inline]`

Constructor from a set of parameters.

## Member Function Documentation

bool TeQuerierSHP::fetchInstance | ( | TeSTInstance & | stoi | ) | `[virtual]`

Gets the current entity and moves to the next one. Returns if there is a next entity.

Implements TeQuerierImpl.

string TeQuerierSHP::fileName | ( |  | ) | `[inline]`

Returns the file name.

bool TeQuerierSHP::loadGeometries | ( | TeMultiGeometry & | geometries,
|  | unsigned int & | index
| ) |  | `[virtual]`

Loads all geometries of the index-th geometry representation.

Implements TeQuerierImpl.

bool TeQuerierSHP::loadGeometries | ( | TeMultiGeometry & | geometries | ) | `[virtual]`

Loads all geometries.

Implements TeQuerierImpl.

bool TeQuerierSHP::loadInstances | ( | TeTSEntry * | ent = `0` | ) | `[virtual]`

Load information about the geometries and attributes of the shape file.

Implements TeQuerierImpl.

## Member Data Documentation

int TeQuerierSHP::curEntity`[protected]`

current entity index used to traverse all entities of the shape file

DBFHandle TeQuerierSHP::hDBF`[protected]`

handle to the file that stores attributes (.dbf) of the shapefile format

SHPHandle TeQuerierSHP::hSHP`[protected]`

handle to the file that stores geometries (.shp) of the shapefile format

int TeQuerierSHP::nEntities`[protected]`

number of entities in the shape file

int TeQuerierSHP::nShapeType`[protected]`

geometry type of the shape file

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/shapelib/TeQuerierSHP.h
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/shapelib/TeQuerierSHP.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines