pyogrio 0.9.0__cp312-cp312-win_amd64.whl → 0.10.0__cp312-cp312-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyogrio might be problematic. Click here for more details.
- pyogrio/__init__.py +26 -18
- pyogrio/_compat.py +7 -1
- pyogrio/_env.py +4 -6
- pyogrio/_err.c +460 -445
- pyogrio/_err.cp312-win_amd64.pyd +0 -0
- pyogrio/_geometry.c +645 -612
- pyogrio/_geometry.cp312-win_amd64.pyd +0 -0
- pyogrio/_io.c +7749 -7596
- pyogrio/_io.cp312-win_amd64.pyd +0 -0
- pyogrio/_ogr.c +601 -609
- pyogrio/_ogr.cp312-win_amd64.pyd +0 -0
- pyogrio/_version.py +3 -3
- pyogrio/_vsi.c +7570 -2514
- pyogrio/_vsi.cp312-win_amd64.pyd +0 -0
- pyogrio/core.py +86 -20
- pyogrio/errors.py +9 -16
- pyogrio/gdal_data/GDAL-targets.cmake +1 -1
- pyogrio/gdal_data/GDALConfig.cmake +0 -1
- pyogrio/gdal_data/GDALConfigVersion.cmake +3 -3
- pyogrio/gdal_data/MM_m_idofic.csv +321 -0
- pyogrio/gdal_data/gdaltileindex.xsd +269 -0
- pyogrio/gdal_data/gdalvrt.xsd +130 -22
- pyogrio/gdal_data/ogrinfo_output.schema.json +23 -0
- pyogrio/gdal_data/ogrvrt.xsd +3 -0
- pyogrio/gdal_data/pci_datum.txt +222 -155
- pyogrio/gdal_data/pci_ellips.txt +90 -38
- pyogrio/gdal_data/vcpkg.spdx.json +21 -21
- pyogrio/gdal_data/vcpkg_abi_info.txt +27 -27
- pyogrio/geopandas.py +32 -24
- pyogrio/proj_data/proj-config-version.cmake +2 -2
- pyogrio/proj_data/proj-targets.cmake +1 -1
- pyogrio/proj_data/proj.db +0 -0
- pyogrio/proj_data/proj4-targets.cmake +1 -1
- pyogrio/proj_data/projjson.schema.json +1 -1
- pyogrio/proj_data/vcpkg.spdx.json +17 -17
- pyogrio/proj_data/vcpkg_abi_info.txt +15 -15
- pyogrio/raw.py +46 -30
- pyogrio/tests/conftest.py +206 -12
- pyogrio/tests/fixtures/README.md +32 -13
- pyogrio/tests/fixtures/curve.gpkg +0 -0
- pyogrio/tests/fixtures/{test_multisurface.gpkg → curvepolygon.gpkg} +0 -0
- pyogrio/tests/fixtures/line_zm.gpkg +0 -0
- pyogrio/tests/fixtures/multisurface.gpkg +0 -0
- pyogrio/tests/test_arrow.py +178 -24
- pyogrio/tests/test_core.py +162 -72
- pyogrio/tests/test_geopandas_io.py +239 -99
- pyogrio/tests/test_path.py +29 -17
- pyogrio/tests/test_raw_io.py +165 -54
- pyogrio/tests/test_util.py +56 -0
- pyogrio/util.py +54 -30
- pyogrio-0.10.0.dist-info/DELVEWHEEL +2 -0
- {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/LICENSE +1 -1
- {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/METADATA +37 -8
- {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/RECORD +74 -90
- {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/WHEEL +1 -1
- pyogrio.libs/{Lerc-5e4d8cbeeabca06f95e2270792304dc3.dll → Lerc-089e3fef3df84b17326dcddbf1dedaa4.dll} +0 -0
- pyogrio.libs/{gdal-b434963605a006e01c486c0df6dea4e0.dll → gdal-debee5933f0da7bb90b4bcd009023377.dll} +0 -0
- pyogrio.libs/{geos-f0622d0794b81c937a851b2e6fa9b712.dll → geos-ace4c5b5c1f569bb4213e7bbd0b0322e.dll} +0 -0
- pyogrio.libs/{geos_c-0e16bf70612fc3301d077b9d863a3fdb.dll → geos_c-7478ca0a86136b280d9b2d245c6f6627.dll} +0 -0
- pyogrio.libs/geotiff-c8fe8a095520a4ea4e465d27e06add3a.dll +0 -0
- pyogrio.libs/{iconv-2-8fcc23ddc6f096c45871011b6e008b44.dll → iconv-2-27352d156a5467ca5383d3951093ea5a.dll} +0 -0
- pyogrio.libs/{jpeg62-2f9b7af22d78338e8f0be0058503dc35.dll → jpeg62-e56b6f95a95af498f4623b8da4cebd46.dll} +0 -0
- pyogrio.libs/{json-c-e52a077545e4057de42beb4948289b41.dll → json-c-c84940e2654a4f8468bfcf2ce992aa93.dll} +0 -0
- pyogrio.libs/libcurl-d69cfd4ad487d53d58743b6778ec85e7.dll +0 -0
- pyogrio.libs/{libexpat-fbe03ca8917dfda776562d4338b289b8.dll → libexpat-6576a8d02641b6a3dbad35901ec200a7.dll} +0 -0
- pyogrio.libs/liblzma-9ee4accb476ec1ae24e924953140273d.dll +0 -0
- pyogrio.libs/{libpng16-13928571ad910705eae8d7dd8eef8b11.dll → libpng16-7c36142dda59f186f6bb683e8dae2bfe.dll} +0 -0
- pyogrio.libs/{msvcp140-46db46e967c8db2cb7a20fc75872a57e.dll → msvcp140-98b3e5b80de1e5e9d1703b786d795623.dll} +0 -0
- pyogrio.libs/proj-a408c5327f3fd2f5fabe8c56815beed7.dll +0 -0
- pyogrio.libs/{qhull_r-c45abde5d0c92faf723cc2942138af77.dll → qhull_r-516897f855568caab1ab1fe37912766c.dll} +0 -0
- pyogrio.libs/sqlite3-9bc109d8536d5ed9666332fec94485fc.dll +0 -0
- pyogrio.libs/{tiff-43630f30487a9015213475ae86ed3fa3.dll → tiff-9b3f605fffe0bccc0a964c374ee4f820.dll} +0 -0
- pyogrio.libs/{zlib1-e1272810861a13dd8d6cff3beac47f17.dll → zlib1-e5af16a15c63f05bd82d90396807ae5b.dll} +0 -0
- pyogrio/_err.pxd +0 -4
- pyogrio/_err.pyx +0 -250
- pyogrio/_geometry.pxd +0 -4
- pyogrio/_geometry.pyx +0 -129
- pyogrio/_io.pxd +0 -0
- pyogrio/_io.pyx +0 -2742
- pyogrio/_ogr.pxd +0 -444
- pyogrio/_ogr.pyx +0 -346
- pyogrio/_vsi.pxd +0 -4
- pyogrio/_vsi.pyx +0 -140
- pyogrio/arrow_bridge.h +0 -115
- pyogrio/gdal_data/bag_template.xml +0 -201
- pyogrio/gdal_data/gmlasconf.xml +0 -169
- pyogrio/gdal_data/gmlasconf.xsd +0 -1066
- pyogrio/gdal_data/netcdf_config.xsd +0 -143
- pyogrio/gdal_data/template_tiles.mapml +0 -28
- pyogrio/tests/fixtures/poly_not_enough_points.shp.zip +0 -0
- pyogrio/tests/fixtures/test_datetime.geojson +0 -7
- pyogrio/tests/fixtures/test_datetime_tz.geojson +0 -8
- pyogrio/tests/fixtures/test_fgdb.gdb.zip +0 -0
- pyogrio/tests/fixtures/test_nested.geojson +0 -18
- pyogrio/tests/fixtures/test_ogr_types_list.geojson +0 -12
- pyogrio-0.9.0.dist-info/DELVEWHEEL +0 -2
- pyogrio.libs/geotiff-772e7c705fb15ddf91b432adb4eb1f6c.dll +0 -0
- pyogrio.libs/libcurl-bc81cd8afe15b10c0821b181b6af8bd0.dll +0 -0
- pyogrio.libs/liblzma-6b36f24d54d3dd45f274a2aebef81085.dll +0 -0
- pyogrio.libs/proj-8a30239ef2dfc3b9dd2bb48e8abb330f.dll +0 -0
- pyogrio.libs/sqlite3-df30c3cf230727e23c43c40126a530f7.dll +0 -0
- {pyogrio-0.9.0.dist-info → pyogrio-0.10.0.dist-info}/top_level.txt +0 -0
pyogrio/_ogr.pxd
DELETED
|
@@ -1,444 +0,0 @@
|
|
|
1
|
-
# Contains declarations against GDAL / OGR API
|
|
2
|
-
from libc.stdint cimport int64_t, int8_t
|
|
3
|
-
from libc.stdio cimport FILE
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
cdef extern from "cpl_conv.h":
|
|
7
|
-
ctypedef unsigned char GByte
|
|
8
|
-
|
|
9
|
-
void* CPLMalloc(size_t)
|
|
10
|
-
void CPLFree(void *ptr)
|
|
11
|
-
|
|
12
|
-
const char* CPLFindFile(const char *pszClass, const char *filename)
|
|
13
|
-
const char* CPLGetConfigOption(const char* key, const char* value)
|
|
14
|
-
void CPLSetConfigOption(const char* key, const char* value)
|
|
15
|
-
const char* CPLGetThreadLocalConfigOption(const char* key, const char* value)
|
|
16
|
-
void CPLSetThreadLocalConfigOption(const char* key, const char* value)
|
|
17
|
-
char* CPLStrdup(const char* string)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
cdef extern from "cpl_error.h" nogil:
|
|
21
|
-
ctypedef enum CPLErr:
|
|
22
|
-
CE_None
|
|
23
|
-
CE_Debug
|
|
24
|
-
CE_Warning
|
|
25
|
-
CE_Failure
|
|
26
|
-
CE_Fatal
|
|
27
|
-
|
|
28
|
-
void CPLErrorReset()
|
|
29
|
-
int CPLGetLastErrorNo()
|
|
30
|
-
const char* CPLGetLastErrorMsg()
|
|
31
|
-
int CPLGetLastErrorType()
|
|
32
|
-
|
|
33
|
-
ctypedef void (*CPLErrorHandler)(CPLErr, int, const char*)
|
|
34
|
-
void CPLDefaultErrorHandler(CPLErr, int, const char *)
|
|
35
|
-
void CPLPushErrorHandler(CPLErrorHandler handler)
|
|
36
|
-
void CPLPopErrorHandler()
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
cdef extern from "cpl_string.h":
|
|
40
|
-
char** CSLAddNameValue(char **list, const char *name, const char *value)
|
|
41
|
-
char** CSLSetNameValue(char **list, const char *name, const char *value)
|
|
42
|
-
void CSLDestroy(char **list)
|
|
43
|
-
char** CSLAddString(char **list, const char *string)
|
|
44
|
-
int CSLCount(char **list)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
cdef extern from "cpl_vsi.h" nogil:
|
|
48
|
-
int VSI_STAT_EXISTS_FLAG
|
|
49
|
-
ctypedef int vsi_l_offset
|
|
50
|
-
ctypedef FILE VSILFILE
|
|
51
|
-
ctypedef struct VSIStatBufL:
|
|
52
|
-
long st_size
|
|
53
|
-
long st_mode
|
|
54
|
-
int st_mtime
|
|
55
|
-
|
|
56
|
-
int VSIFCloseL(VSILFILE *fp)
|
|
57
|
-
int VSIFFlushL(VSILFILE *fp)
|
|
58
|
-
int VSIUnlink(const char *path)
|
|
59
|
-
|
|
60
|
-
VSILFILE *VSIFileFromMemBuffer(const char *path, void *data, vsi_l_offset data_len, int take_ownership)
|
|
61
|
-
unsigned char *VSIGetMemFileBuffer(const char *path, vsi_l_offset *data_len, int take_ownership)
|
|
62
|
-
|
|
63
|
-
int VSIMkdir(const char *path, long mode)
|
|
64
|
-
int VSIRmdirRecursive(const char *pszDirname)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
cdef extern from "ogr_core.h":
|
|
68
|
-
ctypedef enum OGRErr:
|
|
69
|
-
OGRERR_NONE # success
|
|
70
|
-
OGRERR_NOT_ENOUGH_DATA
|
|
71
|
-
OGRERR_NOT_ENOUGH_MEMORY
|
|
72
|
-
OGRERR_UNSUPPORTED_GEOMETRY_TYPE
|
|
73
|
-
OGRERR_UNSUPPORTED_OPERATION
|
|
74
|
-
OGRERR_CORRUPT_DATA
|
|
75
|
-
OGRERR_FAILURE
|
|
76
|
-
OGRERR_UNSUPPORTED_SRS
|
|
77
|
-
OGRERR_INVALID_HANDLE
|
|
78
|
-
OGRERR_NON_EXISTING_FEATURE
|
|
79
|
-
|
|
80
|
-
ctypedef enum OGRwkbGeometryType:
|
|
81
|
-
wkbUnknown
|
|
82
|
-
wkbPoint
|
|
83
|
-
wkbLineString
|
|
84
|
-
wkbPolygon
|
|
85
|
-
wkbMultiPoint
|
|
86
|
-
wkbMultiLineString
|
|
87
|
-
wkbMultiPolygon
|
|
88
|
-
wkbGeometryCollection
|
|
89
|
-
wkbCircularString
|
|
90
|
-
wkbCompoundCurve
|
|
91
|
-
wkbCurvePolygon
|
|
92
|
-
wkbMultiCurve
|
|
93
|
-
wkbMultiSurface
|
|
94
|
-
wkbCurve
|
|
95
|
-
wkbSurface
|
|
96
|
-
wkbPolyhedralSurface
|
|
97
|
-
wkbTIN
|
|
98
|
-
wkbTriangle
|
|
99
|
-
wkbNone
|
|
100
|
-
wkbLinearRing
|
|
101
|
-
wkbCircularStringZ
|
|
102
|
-
wkbCompoundCurveZ
|
|
103
|
-
wkbCurvePolygonZ
|
|
104
|
-
wkbMultiCurveZ
|
|
105
|
-
wkbMultiSurfaceZ
|
|
106
|
-
wkbCurveZ
|
|
107
|
-
wkbSurfaceZ
|
|
108
|
-
wkbPolyhedralSurfaceZ
|
|
109
|
-
wkbTINZ
|
|
110
|
-
wkbTriangleZ
|
|
111
|
-
wkbPointM
|
|
112
|
-
wkbLineStringM
|
|
113
|
-
wkbPolygonM
|
|
114
|
-
wkbMultiPointM
|
|
115
|
-
wkbMultiLineStringM
|
|
116
|
-
wkbMultiPolygonM
|
|
117
|
-
wkbGeometryCollectionM
|
|
118
|
-
wkbCircularStringM
|
|
119
|
-
wkbCompoundCurveM
|
|
120
|
-
wkbCurvePolygonM
|
|
121
|
-
wkbMultiCurveM
|
|
122
|
-
wkbMultiSurfaceM
|
|
123
|
-
wkbCurveM
|
|
124
|
-
wkbSurfaceM
|
|
125
|
-
wkbPolyhedralSurfaceM
|
|
126
|
-
wkbTINM
|
|
127
|
-
wkbTriangleM
|
|
128
|
-
wkbPointZM
|
|
129
|
-
wkbLineStringZM
|
|
130
|
-
wkbPolygonZM
|
|
131
|
-
wkbMultiPointZM
|
|
132
|
-
wkbMultiLineStringZM
|
|
133
|
-
wkbMultiPolygonZM
|
|
134
|
-
wkbGeometryCollectionZM
|
|
135
|
-
wkbCircularStringZM
|
|
136
|
-
wkbCompoundCurveZM
|
|
137
|
-
wkbCurvePolygonZM
|
|
138
|
-
wkbMultiCurveZM
|
|
139
|
-
wkbMultiSurfaceZM
|
|
140
|
-
wkbCurveZM
|
|
141
|
-
wkbSurfaceZM
|
|
142
|
-
wkbPolyhedralSurfaceZM
|
|
143
|
-
wkbTINZM
|
|
144
|
-
wkbTriangleZM
|
|
145
|
-
wkbPoint25D
|
|
146
|
-
wkbLineString25D
|
|
147
|
-
wkbPolygon25D
|
|
148
|
-
wkbMultiPoint25D
|
|
149
|
-
wkbMultiLineString25D
|
|
150
|
-
wkbMultiPolygon25D
|
|
151
|
-
wkbGeometryCollection25D
|
|
152
|
-
|
|
153
|
-
ctypedef enum OGRFieldType:
|
|
154
|
-
OFTInteger
|
|
155
|
-
OFTIntegerList
|
|
156
|
-
OFTReal
|
|
157
|
-
OFTRealList
|
|
158
|
-
OFTString
|
|
159
|
-
OFTStringList
|
|
160
|
-
OFTWideString
|
|
161
|
-
OFTWideStringList
|
|
162
|
-
OFTBinary
|
|
163
|
-
OFTDate
|
|
164
|
-
OFTTime
|
|
165
|
-
OFTDateTime
|
|
166
|
-
OFTInteger64
|
|
167
|
-
OFTInteger64List
|
|
168
|
-
OFTMaxType
|
|
169
|
-
|
|
170
|
-
ctypedef enum OGRFieldSubType:
|
|
171
|
-
OFSTNone
|
|
172
|
-
OFSTBoolean
|
|
173
|
-
OFSTInt16
|
|
174
|
-
OFSTFloat32
|
|
175
|
-
|
|
176
|
-
ctypedef void* OGRDataSourceH
|
|
177
|
-
ctypedef void* OGRFeatureDefnH
|
|
178
|
-
ctypedef void* OGRFieldDefnH
|
|
179
|
-
ctypedef void* OGRFeatureH
|
|
180
|
-
ctypedef void* OGRGeometryH
|
|
181
|
-
ctypedef void* OGRLayerH
|
|
182
|
-
ctypedef void* OGRSFDriverH
|
|
183
|
-
|
|
184
|
-
ctypedef struct OGREnvelope:
|
|
185
|
-
double MinX
|
|
186
|
-
double MaxX
|
|
187
|
-
double MinY
|
|
188
|
-
double MaxY
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
cdef extern from "ogr_srs_api.h":
|
|
192
|
-
ctypedef void* OGRSpatialReferenceH
|
|
193
|
-
|
|
194
|
-
int OSRAutoIdentifyEPSG(OGRSpatialReferenceH srs)
|
|
195
|
-
OGRErr OSRExportToWkt(OGRSpatialReferenceH srs, char **params)
|
|
196
|
-
const char* OSRGetAuthorityName(OGRSpatialReferenceH srs, const char *key)
|
|
197
|
-
const char* OSRGetAuthorityCode(OGRSpatialReferenceH srs, const char *key)
|
|
198
|
-
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH srs, int code)
|
|
199
|
-
ctypedef enum OSRAxisMappingStrategy:
|
|
200
|
-
OAMS_TRADITIONAL_GIS_ORDER
|
|
201
|
-
|
|
202
|
-
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy)
|
|
203
|
-
int OSRSetFromUserInput(OGRSpatialReferenceH srs, const char *pszDef)
|
|
204
|
-
void OSRSetPROJSearchPaths(const char *const *paths)
|
|
205
|
-
OGRSpatialReferenceH OSRNewSpatialReference(const char *wkt)
|
|
206
|
-
void OSRRelease(OGRSpatialReferenceH srs)
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
cdef extern from "arrow_bridge.h" nogil:
|
|
210
|
-
struct ArrowArray:
|
|
211
|
-
int64_t length
|
|
212
|
-
int64_t null_count
|
|
213
|
-
int64_t offset
|
|
214
|
-
int64_t n_buffers
|
|
215
|
-
int64_t n_children
|
|
216
|
-
const void** buffers
|
|
217
|
-
ArrowArray** children
|
|
218
|
-
ArrowArray* dictionary
|
|
219
|
-
void (*release)(ArrowArray*) noexcept nogil
|
|
220
|
-
void* private_data
|
|
221
|
-
|
|
222
|
-
struct ArrowSchema:
|
|
223
|
-
const char* format
|
|
224
|
-
const char* name
|
|
225
|
-
const char* metadata
|
|
226
|
-
int64_t flags
|
|
227
|
-
int64_t n_children
|
|
228
|
-
ArrowSchema** children
|
|
229
|
-
ArrowSchema* dictionary
|
|
230
|
-
void (*release)(ArrowSchema*) noexcept nogil
|
|
231
|
-
void* private_data
|
|
232
|
-
|
|
233
|
-
struct ArrowArrayStream:
|
|
234
|
-
int (*get_schema)(ArrowArrayStream*, ArrowSchema* out) noexcept
|
|
235
|
-
int (*get_next)(ArrowArrayStream*, ArrowArray* out)
|
|
236
|
-
const char* (*get_last_error)(ArrowArrayStream*)
|
|
237
|
-
void (*release)(ArrowArrayStream*) noexcept
|
|
238
|
-
void* private_data
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
cdef extern from "ogr_api.h":
|
|
242
|
-
int OGRGetDriverCount()
|
|
243
|
-
OGRSFDriverH OGRGetDriver(int)
|
|
244
|
-
|
|
245
|
-
OGRDataSourceH OGR_Dr_Open(OGRSFDriverH driver, const char *path, int bupdate)
|
|
246
|
-
const char* OGR_Dr_GetName(OGRSFDriverH driver)
|
|
247
|
-
|
|
248
|
-
const char* OGR_DS_GetName(OGRDataSourceH)
|
|
249
|
-
|
|
250
|
-
OGRFeatureH OGR_F_Create(OGRFeatureDefnH featuredefn)
|
|
251
|
-
void OGR_F_Destroy(OGRFeatureH feature)
|
|
252
|
-
|
|
253
|
-
int64_t OGR_F_GetFID(OGRFeatureH feature)
|
|
254
|
-
OGRGeometryH OGR_F_GetGeometryRef(OGRFeatureH feature)
|
|
255
|
-
GByte* OGR_F_GetFieldAsBinary(OGRFeatureH feature, int n, int *s)
|
|
256
|
-
int OGR_F_GetFieldAsDateTimeEx(OGRFeatureH feature, int n, int *y, int *m, int *d, int *h, int *m, float *s, int *z)
|
|
257
|
-
double OGR_F_GetFieldAsDouble(OGRFeatureH feature, int n)
|
|
258
|
-
int OGR_F_GetFieldAsInteger(OGRFeatureH feature, int n)
|
|
259
|
-
int64_t OGR_F_GetFieldAsInteger64(OGRFeatureH feature, int n)
|
|
260
|
-
const char* OGR_F_GetFieldAsString(OGRFeatureH feature, int n)
|
|
261
|
-
int OGR_F_IsFieldSetAndNotNull(OGRFeatureH feature, int n)
|
|
262
|
-
void OGR_F_SetFieldDateTime(OGRFeatureH feature, int n, int y, int m, int d, int hh, int mm, int ss, int tz)
|
|
263
|
-
void OGR_F_SetFieldDouble(OGRFeatureH feature, int n, double value)
|
|
264
|
-
void OGR_F_SetFieldInteger(OGRFeatureH feature, int n, int value)
|
|
265
|
-
void OGR_F_SetFieldInteger64(OGRFeatureH feature, int n, int64_t value)
|
|
266
|
-
void OGR_F_SetFieldString(OGRFeatureH feature, int n, char *value)
|
|
267
|
-
void OGR_F_SetFieldBinary(OGRFeatureH feature, int n, int l, unsigned char *value)
|
|
268
|
-
void OGR_F_SetFieldNull(OGRFeatureH feature, int n) # new in GDAL 2.2
|
|
269
|
-
void OGR_F_SetFieldDateTimeEx(
|
|
270
|
-
OGRFeatureH hFeat,
|
|
271
|
-
int iField,
|
|
272
|
-
int nYear,
|
|
273
|
-
int nMonth,
|
|
274
|
-
int nDay,
|
|
275
|
-
int nHour,
|
|
276
|
-
int nMinute,
|
|
277
|
-
float fSecond,
|
|
278
|
-
int nTZFlag)
|
|
279
|
-
OGRErr OGR_F_SetGeometryDirectly(OGRFeatureH feature, OGRGeometryH geometry)
|
|
280
|
-
|
|
281
|
-
OGRFeatureDefnH OGR_FD_Create(const char *name)
|
|
282
|
-
int OGR_FD_GetFieldCount(OGRFeatureDefnH featuredefn)
|
|
283
|
-
OGRFeatureDefnH OGR_FD_GetFieldDefn(OGRFeatureDefnH featuredefn, int n)
|
|
284
|
-
OGRwkbGeometryType OGR_FD_GetGeomType(OGRFeatureDefnH featuredefn)
|
|
285
|
-
|
|
286
|
-
OGRFieldDefnH OGR_Fld_Create(const char *name, OGRFieldType fieldtype)
|
|
287
|
-
void OGR_Fld_Destroy(OGRFieldDefnH fielddefn)
|
|
288
|
-
const char* OGR_Fld_GetNameRef(OGRFieldDefnH fielddefn)
|
|
289
|
-
int OGR_Fld_GetPrecision(OGRFieldDefnH fielddefn)
|
|
290
|
-
OGRFieldSubType OGR_Fld_GetSubType(OGRFieldDefnH fielddefn)
|
|
291
|
-
int OGR_Fld_GetType(OGRFieldDefnH fielddefn)
|
|
292
|
-
int OGR_Fld_GetWidth(OGRFieldDefnH fielddefn)
|
|
293
|
-
void OGR_Fld_Set(OGRFieldDefnH fielddefn, const char *name, int fieldtype, int width, int precision, int justification)
|
|
294
|
-
void OGR_Fld_SetPrecision(OGRFieldDefnH fielddefn, int n)
|
|
295
|
-
void OGR_Fld_SetWidth(OGRFieldDefnH fielddefn, int n)
|
|
296
|
-
|
|
297
|
-
void OGR_Fld_SetSubType(OGRFieldDefnH fielddefn, OGRFieldSubType subtype)
|
|
298
|
-
|
|
299
|
-
OGRGeometryH OGR_G_CreateGeometry(int wkbtypecode)
|
|
300
|
-
OGRErr OGR_G_CreateFromWkb(const void *bytes, OGRSpatialReferenceH srs, OGRGeometryH *geometry, int nbytes)
|
|
301
|
-
void OGR_G_DestroyGeometry(OGRGeometryH geometry)
|
|
302
|
-
void OGR_G_ExportToWkb(OGRGeometryH geometry, int endianness, unsigned char *buffer)
|
|
303
|
-
void OGR_G_GetEnvelope(OGRGeometryH geometry, OGREnvelope* envelope)
|
|
304
|
-
OGRwkbGeometryType OGR_G_GetGeometryType(OGRGeometryH)
|
|
305
|
-
OGRGeometryH OGR_G_GetLinearGeometry(OGRGeometryH hGeom, double dfMaxAngleStepSizeDegrees, char **papszOptions)
|
|
306
|
-
OGRErr OGR_G_ImportFromWkb(OGRGeometryH geometry, const void *bytes, int nbytes)
|
|
307
|
-
int OGR_G_IsMeasured(OGRGeometryH geometry)
|
|
308
|
-
void OGR_G_SetMeasured(OGRGeometryH geometry, int isMeasured)
|
|
309
|
-
int OGR_G_Is3D(OGRGeometryH geometry)
|
|
310
|
-
void OGR_G_Set3D(OGRGeometryH geometry, int is3D)
|
|
311
|
-
int OGR_G_WkbSize(OGRGeometryH geometry)
|
|
312
|
-
OGRGeometryH OGR_G_ForceToMultiPoint(OGRGeometryH geometry)
|
|
313
|
-
OGRGeometryH OGR_G_ForceToMultiLineString(OGRGeometryH geometry)
|
|
314
|
-
OGRGeometryH OGR_G_ForceToMultiPolygon(OGRGeometryH geometry)
|
|
315
|
-
|
|
316
|
-
int OGR_GT_HasM(OGRwkbGeometryType eType)
|
|
317
|
-
int OGR_GT_HasZ(OGRwkbGeometryType eType)
|
|
318
|
-
int OGR_GT_IsNonLinear(OGRwkbGeometryType eType)
|
|
319
|
-
OGRwkbGeometryType OGR_GT_SetModifier(OGRwkbGeometryType eType, int setZ, int setM)
|
|
320
|
-
|
|
321
|
-
OGRErr OGR_L_CreateFeature(OGRLayerH layer, OGRFeatureH feature)
|
|
322
|
-
OGRErr OGR_L_CreateField(OGRLayerH layer, OGRFieldDefnH fielddefn, int flexible)
|
|
323
|
-
const char* OGR_L_GetName(OGRLayerH layer)
|
|
324
|
-
const char* OGR_L_GetFIDColumn(OGRLayerH layer)
|
|
325
|
-
const char* OGR_L_GetGeometryColumn(OGRLayerH layer)
|
|
326
|
-
OGRErr OGR_L_GetExtent(OGRLayerH layer, OGREnvelope *psExtent, int bForce)
|
|
327
|
-
OGRSpatialReferenceH OGR_L_GetSpatialRef(OGRLayerH layer)
|
|
328
|
-
int OGR_L_TestCapability(OGRLayerH layer, const char *name)
|
|
329
|
-
OGRFeatureDefnH OGR_L_GetLayerDefn(OGRLayerH layer)
|
|
330
|
-
OGRFeatureH OGR_L_GetNextFeature(OGRLayerH layer)
|
|
331
|
-
OGRFeatureH OGR_L_GetFeature(OGRLayerH layer, int nFeatureId)
|
|
332
|
-
void OGR_L_ResetReading(OGRLayerH layer)
|
|
333
|
-
OGRErr OGR_L_SetAttributeFilter(OGRLayerH hLayer, const char* pszQuery)
|
|
334
|
-
OGRErr OGR_L_SetNextByIndex(OGRLayerH layer, int nIndex)
|
|
335
|
-
int OGR_L_GetFeatureCount(OGRLayerH layer, int m)
|
|
336
|
-
void OGR_L_SetSpatialFilterRect(OGRLayerH layer, double xmin, double ymin, double xmax, double ymax)
|
|
337
|
-
void OGR_L_SetSpatialFilter(OGRLayerH layer, OGRGeometryH geometry)
|
|
338
|
-
OGRErr OGR_L_SetIgnoredFields(OGRLayerH layer, const char** fields)
|
|
339
|
-
|
|
340
|
-
void OGRSetNonLinearGeometriesEnabledFlag(int bFlag)
|
|
341
|
-
int OGRGetNonLinearGeometriesEnabledFlag()
|
|
342
|
-
|
|
343
|
-
const char* OLCStringsAsUTF8
|
|
344
|
-
const char* OLCRandomRead
|
|
345
|
-
const char* OLCFastSetNextByIndex
|
|
346
|
-
const char* OLCFastSpatialFilter
|
|
347
|
-
const char* OLCFastFeatureCount
|
|
348
|
-
const char* OLCFastGetExtent
|
|
349
|
-
const char* OLCTransactions
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
IF CTE_GDAL_VERSION >= (3, 6, 0):
|
|
353
|
-
|
|
354
|
-
cdef extern from "ogr_api.h":
|
|
355
|
-
bint OGR_L_GetArrowStream(OGRLayerH hLayer, ArrowArrayStream *out_stream, char** papszOptions)
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
IF CTE_GDAL_VERSION >= (3, 8, 0):
|
|
359
|
-
|
|
360
|
-
cdef extern from "ogr_api.h":
|
|
361
|
-
bint OGR_L_CreateFieldFromArrowSchema(OGRLayerH hLayer, ArrowSchema *schema, char **papszOptions)
|
|
362
|
-
bint OGR_L_WriteArrowBatch(OGRLayerH hLayer, ArrowSchema *schema, ArrowArray *array, char **papszOptions)
|
|
363
|
-
|
|
364
|
-
cdef extern from "gdal.h":
|
|
365
|
-
ctypedef enum GDALDataType:
|
|
366
|
-
GDT_Unknown
|
|
367
|
-
GDT_Byte
|
|
368
|
-
GDT_UInt16
|
|
369
|
-
GDT_Int16
|
|
370
|
-
GDT_UInt32
|
|
371
|
-
GDT_Int32
|
|
372
|
-
GDT_Float32
|
|
373
|
-
GDT_Float64
|
|
374
|
-
GDT_CInt16
|
|
375
|
-
GDT_CInt32
|
|
376
|
-
GDT_CFloat32
|
|
377
|
-
GDT_CFloat64
|
|
378
|
-
GDT_TypeCount
|
|
379
|
-
|
|
380
|
-
int GDAL_OF_UPDATE
|
|
381
|
-
int GDAL_OF_READONLY
|
|
382
|
-
int GDAL_OF_VECTOR
|
|
383
|
-
int GDAL_OF_VERBOSE_ERROR
|
|
384
|
-
|
|
385
|
-
ctypedef void* GDALDatasetH
|
|
386
|
-
ctypedef void* GDALDriverH
|
|
387
|
-
ctypedef void * GDALMajorObjectH
|
|
388
|
-
|
|
389
|
-
void GDALAllRegister()
|
|
390
|
-
|
|
391
|
-
GDALDatasetH GDALCreate(OGRSFDriverH driver,
|
|
392
|
-
const char * pszFilename,
|
|
393
|
-
int nXSize,
|
|
394
|
-
int nYSize,
|
|
395
|
-
int nBands,
|
|
396
|
-
GDALDataType eBandType,
|
|
397
|
-
char ** papszOptions)
|
|
398
|
-
|
|
399
|
-
OGRLayerH GDALDatasetCreateLayer(GDALDatasetH ds,
|
|
400
|
-
const char * pszName,
|
|
401
|
-
OGRSpatialReferenceH hSpatialRef,
|
|
402
|
-
int eType,
|
|
403
|
-
char ** papszOptions)
|
|
404
|
-
|
|
405
|
-
int GDALDatasetDeleteLayer(GDALDatasetH hDS, int iLayer)
|
|
406
|
-
|
|
407
|
-
GDALDriverH GDALGetDatasetDriver(GDALDatasetH ds)
|
|
408
|
-
GDALDriverH GDALGetDriverByName(const char * pszName)
|
|
409
|
-
GDALDatasetH GDALOpenEx(const char * pszFilename,
|
|
410
|
-
unsigned int nOpenFlags,
|
|
411
|
-
const char *const *papszAllowedDrivers,
|
|
412
|
-
const char *const *papszOpenOptions,
|
|
413
|
-
const char *const *papszSiblingFiles)
|
|
414
|
-
|
|
415
|
-
int GDALDatasetGetLayerCount(GDALDatasetH ds)
|
|
416
|
-
OGRLayerH GDALDatasetGetLayer(GDALDatasetH ds, int iLayer)
|
|
417
|
-
OGRLayerH GDALDatasetGetLayerByName(GDALDatasetH ds, char * pszName)
|
|
418
|
-
OGRLayerH GDALDatasetExecuteSQL(
|
|
419
|
-
GDALDatasetH ds,
|
|
420
|
-
const char* pszStatement,
|
|
421
|
-
OGRGeometryH hSpatialFilter,
|
|
422
|
-
const char* pszDialect)
|
|
423
|
-
void GDALDatasetReleaseResultSet(GDALDatasetH, OGRLayerH)
|
|
424
|
-
OGRErr GDALDatasetStartTransaction(GDALDatasetH ds, int bForce)
|
|
425
|
-
OGRErr GDALDatasetCommitTransaction(GDALDatasetH ds)
|
|
426
|
-
OGRErr GDALDatasetRollbackTransaction(GDALDatasetH ds)
|
|
427
|
-
char** GDALGetMetadata(GDALMajorObjectH obj, const char *pszDomain)
|
|
428
|
-
const char* GDALGetMetadataItem(GDALMajorObjectH obj, const char *pszName, const char *pszDomain)
|
|
429
|
-
OGRErr GDALSetMetadata(GDALMajorObjectH obj, char **metadata, const char *pszDomain)
|
|
430
|
-
const char* GDALVersionInfo(const char *pszRequest)
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
# GDALClose returns error code for >= 3.7.0
|
|
434
|
-
IF CTE_GDAL_VERSION >= (3, 7, 0):
|
|
435
|
-
|
|
436
|
-
cdef extern from "ogr_api.h":
|
|
437
|
-
int GDALClose(GDALDatasetH ds)
|
|
438
|
-
ELSE:
|
|
439
|
-
|
|
440
|
-
cdef extern from "ogr_api.h":
|
|
441
|
-
void GDALClose(GDALDatasetH ds)
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
cdef get_string(const char *c_str, str encoding=*)
|