#include <Types.h>
Definition at line 36 of file Types.h.
Geospatial::GeoTypesError::GeoTypesError |
( |
const std::string & |
type, |
|
|
const int |
ogr_err |
|
) |
| |
|
inlineexplicit |
Definition at line 38 of file Types.h.
39 : std::runtime_error(
"Geo" +
type +
static std::string OGRErrorToStr(const int ogr_err)
Geospatial::GeoTypesError::GeoTypesError |
( |
const std::string & |
type, |
|
|
const std::string & |
err |
|
) |
| |
|
inlineexplicit |
Definition at line 41 of file Types.h.
42 : std::runtime_error(
"Geo" +
type +
" Error: " + err) {}
std::string Geospatial::GeoTypesError::OGRErrorToStr |
( |
const int |
ogr_err | ) |
|
|
staticprivate |
Definition at line 119 of file Types.cpp.
References to_string().
121 case OGRERR_NOT_ENOUGH_DATA:
122 return std::string(
"not enough input data");
123 case OGRERR_NOT_ENOUGH_MEMORY:
124 return std::string(
"not enough memory");
125 case OGRERR_UNSUPPORTED_GEOMETRY_TYPE:
126 return std::string(
"unsupported geometry type");
127 case OGRERR_UNSUPPORTED_OPERATION:
128 return std::string(
"unsupported operation");
129 case OGRERR_CORRUPT_DATA:
130 return std::string(
"corrupt input data");
132 return std::string(
"ogr failure");
133 case OGRERR_UNSUPPORTED_SRS:
134 return std::string(
"unsupported spatial reference system");
135 case OGRERR_INVALID_HANDLE:
136 return std::string(
"invalid file handle");
137 #if (GDAL_VERSION_MAJOR > 1)
138 case OGRERR_NON_EXISTING_FEATURE:
139 return std::string(
"feature does not exist in input geometry");
142 return std::string(
"Unknown OGOR error encountered: ") +
std::to_string(ogr_err);
The documentation for this class was generated from the following files:
- /home/jenkins-slave/workspace/core-os-doxygen/Geospatial/Types.h
- /home/jenkins-slave/workspace/core-os-doxygen/Geospatial/Types.cpp