26 #ifndef __TERRALIB_PLUGINEDIT_INTERNAL_GEOMETRYFILE_H
27 #define __TERRALIB_PLUGINEDIT_INTERNAL_GEOMETRYFILE_H
30 #include "../../../common/Exception.h"
109 static void writeGeometries(
const char* fileName,
const std::map<int, te::gm::Geometry*>& geoms);
111 static void writeGeometries(
const char* fileName,
const std::vector<te::gm::Geometry*>& geoms);
122 #endif // __TERRALIB_PLUGINEDIT_INTERNAL_GEOMETRYFILE_H
void setGeometries(const std::vector< unsigned int > &gids)
Sets the desired geometries to get from file.
std::auto_ptr< std::ifstream > m_posFile
Pointer to the geometry pos file.
void openFile(const char *fileName)
Opens the file fileName.
~GeometryFile()
Destructor.
static void writeGeometries(const char *fileName, const std::map< int, te::gm::Geometry * > &geoms)
te::gm::Geometry * next()
Returns the next geometry.
std::auto_ptr< std::ifstream > m_file
Pointer to the geometry file.
GeometryFile()
Constructor.
unsigned int m_i
Current position on traversing.
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
std::vector< unsigned int > m_gids
Selected ids to use on traverse operation.
A class that can parses a file with wkb encoded geometries.