OGS
GeoType.cpp
Go to the documentation of this file.
1
15#include "GeoType.h"
16
17#include <cstdlib>
18
19#include "BaseLib/Error.h"
20
21namespace GeoLib
22{
23std::string convertGeoTypeToString(GEOTYPE geo_type)
24{
25 switch (geo_type)
26 {
27 case GEOTYPE::POINT:
28 return "POINT";
30 return "POLYLINE";
32 return "SURFACE";
33 }
34
35 // Cannot happen, because switch covers all cases.
36 // Used to silence compiler warning.
37 OGS_FATAL("convertGeoTypeToString(): Given geo type is not supported");
38}
39
40} // end namespace GeoLib
#define OGS_FATAL(...)
Definition Error.h:26
Definition of the GEOTYPE enumeration.
std::string convertGeoTypeToString(GEOTYPE geo_type)
Definition GeoType.cpp:23
GEOTYPE
Definition GeoType.h:23