module documentation
This module houses the error-checking routines used by the GDAL ctypes prototypes.
Function | arg |
Return the pointer argument's by-reference value. |
Function | check |
The error code is returned in the last argument, by reference. Check its value with `check_err` before returning the result. |
Function | check |
Similar functionality to `check_string`, but does not free the pointer. |
Function | check |
Check a function that returns an OGR Envelope by reference. |
Function | check |
Check the error code returned (c_int). |
Function | check |
Check a function that returns a geometry. |
Function | check |
Check the geometry at the given offset in the C parameter list. |
Function | check |
Make sure the result pointer is valid. |
Function | check |
Undocumented |
Function | check |
This is for the OSRGet[Angular|Linear]Units functions, which require that the returned string pointer not be freed. This returns both the double and string values. |
Function | check |
Check the string output returned from the given function, and free the string pointer allocated by OGR. The `str_result` keyword may be used when the result is the string pointer, otherwise the OGR error code is assumed... |
Function | ptr |
Return the pointer argument passed in by-reference. |
The error code is returned in the last argument, by reference. Check its value with `check_err` before returning the result.
This is for the OSRGet[Angular|Linear]Units functions, which require that the returned string pointer not be freed. This returns both the double and string values.
Check the string output returned from the given function, and free the string pointer allocated by OGR. The `str_result` keyword may be used when the result is the string pointer, otherwise the OGR error code is assumed. The `offset` keyword may be used to extract the string pointer passed in by-reference at the given slice offset in the function arguments.