26#ifndef __TERRALIB_PLUGINEDIT_INTERNAL_GEOMETRYFILE_H
27#define __TERRALIB_PLUGINEDIT_INTERNAL_GEOMETRYFILE_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);
void openFile(const char *fileName)
Opens the file fileName.
unsigned int m_i
Current position on traversing.
te::gm::Geometry * next()
Returns the next geometry.
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)
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.
This class is designed to declare objects to be thrown as exceptions by TerraLib.
Namespace for the Vector Geometry module of TerraLib.