![]() |
OGS
|
|
Implementation of the shp to gli converter tool.
Definition in file ConvertSHPToGLI.cpp.
#include <shapefil.h>#include <tclap/CmdLine.h>#include <fstream>#include <vector>#include "BaseLib/Logging.h"#include "BaseLib/MPI.h"#include "BaseLib/TCLAPArguments.h"#include "GeoLib/GEOObjects.h"#include "GeoLib/IO/XmlIO/Qt/XmlGmlInterface.h"#include "GeoLib/IO/XmlIO/Qt/XmlStnInterface.h"#include "GeoLib/Point.h"#include "GeoLib/Station.h"#include "InfoLib/GitInfo.h"Go to the source code of this file.
Functions | |
| void | convertPoints (DBFHandle dbf_handle, std::string const &out_fname, std::size_t x_id, std::size_t y_id, std::size_t z_id, std::vector< std::size_t > const &name_component_ids, std::string &points_group_name, bool station) |
| void | printFieldInformationTable (DBFHandle const &dbf_handle, std::size_t n_fields) |
| int | main (int argc, char *argv[]) |
| void convertPoints | ( | DBFHandle | dbf_handle, |
| std::string const & | out_fname, | ||
| std::size_t | x_id, | ||
| std::size_t | y_id, | ||
| std::size_t | z_id, | ||
| std::vector< std::size_t > const & | name_component_ids, | ||
| std::string & | points_group_name, | ||
| bool | station ) |
Definition at line 30 of file ConvertSHPToGLI.cpp.
References GeoLib::GEOObjects::addPointVec(), GeoLib::GEOObjects::addStationVec(), GeoLib::Station::createStation(), BaseLib::IO::XMLInterface::export_name, INFO(), BaseLib::IO::writeStringToFile(), and BaseLib::IO::Writer::writeToString().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 163 of file ConvertSHPToGLI.cpp.
References convertPoints(), ERR(), INFO(), BaseLib::initOGSLogger(), BaseLib::makeLogLevelArg(), GitInfoLib::GitInfo::ogs_version, and printFieldInformationTable().
| void printFieldInformationTable | ( | DBFHandle const & | dbf_handle, |
| std::size_t | n_fields ) |
Definition at line 112 of file ConvertSHPToGLI.cpp.
References INFO().
Referenced by main().