OGS
|
Implementation of the shp to gli converter tool.
Definition in file ConvertSHPToGLI.cpp.
#include <tclap/CmdLine.h>
#include <fstream>
#include <vector>
#include <shapefil.h>
#include "BaseLib/MPI.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 32 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 165 of file ConvertSHPToGLI.cpp.
References convertPoints(), ERR(), INFO(), GitInfoLib::GitInfo::ogs_version, and printFieldInformationTable().
void printFieldInformationTable | ( | DBFHandle const & | dbf_handle, |
std::size_t | n_fields ) |
Definition at line 114 of file ConvertSHPToGLI.cpp.
References INFO().
Referenced by main().