forked from georust/gdal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrapper.h
105 lines (101 loc) · 2.31 KB
/
wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
* includes as in gdal/autotest/cpp/test_include_from_c_file.c
*/
#include "cpl_atomic_ops.h"
#include "cpl_conv.h"
#include "cpl_csv.h"
#include "cpl_error.h"
#include "cpl_hash_set.h"
#include "cpl_list.h"
#include "cpl_minixml.h"
#include "cpl_port.h"
#include "cpl_progress.h"
#include "cpl_quad_tree.h"
#include "cpl_vsi.h"
#include "gdal_alg.h"
#include "gdal_version.h"
#include "gdal.h"
#include "gdal_utils.h"
#include "ogr_api.h"
#include "ogr_core.h"
#include "ogr_srs_api.h"
/**
* extra includes
*/
#include "gdalwarper.h"
/**
* Include ArrowArrayStream header for recent GDAL versions
*/
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,6,0)
#include "ogr_recordbatch.h"
#endif
/**
* Type for a OGR error
*
* <div rustbindgen replaces="OGRErr"></div>
*/
typedef enum
{
/**
* Success
*
* <div rustbindgen replaces="OGRERR_NONE"></div>
*/
STRICT_OGRERR_NONE,
/**
* Not enough data to deserialize
*
* <div rustbindgen replaces="OGRERR_NOT_ENOUGH_DATA"></div>
*/
STRICT_OGRERR_NOT_ENOUGH_DATA,
/**
* Not enough memory
*
* <div rustbindgen replaces="OGRERR_NOT_ENOUGH_MEMORY"></div>
*/
STRICT_OGRERR_NOT_ENOUGH_MEMORY,
/**
* Unsupported geometry type
*
* <div rustbindgen replaces="OGRERR_UNSUPPORTED_GEOMETRY_TYPE"></div>
*/
STRICT_OGRERR_UNSUPPORTED_GEOMETRY_TYPE,
/**
* Unsupported operation
*
* <div rustbindgen replaces="OGRERR_UNSUPPORTED_OPERATION"></div>
*/
STRICT_OGRERR_UNSUPPORTED_OPERATION,
/**
* Corrupt data
*
* <div rustbindgen replaces="OGRERR_CORRUPT_DATA"></div>
*/
STRICT_OGRERR_CORRUPT_DATA,
/**
* Failure
*
* <div rustbindgen replaces="OGRERR_FAILURE"></div>
*/
STRICT_OGRERR_FAILURE,
/**
* Unsupported SRS
*
* <div rustbindgen replaces="OGRERR_UNSUPPORTED_SRS"></div>
*/
STRICT_OGRERR_UNSUPPORTED_SRS,
/**
* Invalid handle
*
* <div rustbindgen replaces="INVALID_HANDLE"></div>
*/
STRICT_OGRERR_INVALID_HANDLE,
#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(2,0,0)
/**
* Non existing feature. Added in GDAL 2.0
*
* <div rustbindgen replaces="NON_EXISTING_FEATURE"></div>
*/
STRICT_OGRERR_NON_EXISTING_FEATURE,
#endif
} StrictOGRErr;