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);
A class that can parses a file with wkb encoded geometries.
void openFile(const char *fileName)
Opens the file fileName.
unsigned int m_i
Current position on traversing.
std::unique_ptr< std::ifstream > m_file
Pointer to the geometry file.
~GeometryFile()
Destructor.
std::vector< unsigned int > m_gids
Selected ids to use on traverse operation.
void setGeometries(const std::vector< unsigned int > &gids)
Sets the desired geometries to get from file.
static void writeGeometries(const char *fileName, const std::map< int, te::gm::Geometry * > &geoms)
te::gm::Geometry * next()
Returns the next geometry.
static void writeGeometries(const char *fileName, const std::vector< te::gm::Geometry * > &geoms)
std::unique_ptr< std::ifstream > m_posFile
Pointer to the geometry pos file.
GeometryFile()
Constructor.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.