module documentation

This module contains functions that generate ctypes prototypes for the GDAL routines.
Class gdal​_char​_p Undocumented
Function bool​_output Generate a ctypes function that returns a boolean value.
Function chararray​_output For functions that return a c_char_p array.
Function const​_string​_output Undocumented
Function double​_output Generate a ctypes function that returns a double value.
Function geom​_output Generate a function that returns a Geometry either by reference or directly (if the return_geom keyword is set to True).
Function int64​_output Generate a ctypes function that returns a 64-bit integer value.
Function int​_output Generate a ctypes function that returns an integer value.
Function srs​_output Generate a ctypes prototype for the given function with the given C arguments that returns a pointer to an OGR Spatial Reference System.
Function string​_output No summary
Function void​_output For functions that don't only return an error code that needs to be examined.
Function voidptr​_output For functions that return c_void_p.
def bool_output(func, argtypes, errcheck=None):
Generate a ctypes function that returns a boolean value.
def chararray_output(func, argtypes, errcheck=True):
For functions that return a c_char_p array.
def const_string_output(func, argtypes, offset=None, decoding=None, cpl=False):

Undocumented

def double_output(func, argtypes, errcheck=False, strarg=False, cpl=False):
Generate a ctypes function that returns a double value.
def geom_output(func, argtypes, offset=None):
Generate a function that returns a Geometry either by reference or directly (if the return_geom keyword is set to True).
def int64_output(func, argtypes):
Generate a ctypes function that returns a 64-bit integer value.
def int_output(func, argtypes, errcheck=None):
Generate a ctypes function that returns an integer value.
def srs_output(func, argtypes):
Generate a ctypes prototype for the given function with the given C arguments that returns a pointer to an OGR Spatial Reference System.
def string_output(func, argtypes, offset=-1, str_result=False, decoding=None):
Generate a ctypes prototype for the given function with the given argument types that returns a string from a GDAL pointer. The const flag indicates whether the allocated pointer should be freed via the GDAL library routine VSIFree -- but only applies only when str_result is True.
def void_output(func, argtypes, errcheck=True, cpl=False):
For functions that don't only return an error code that needs to be examined.
def voidptr_output(func, argtypes, errcheck=True):
For functions that return c_void_p.