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 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.
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): (source)

Generate a ctypes function that returns a boolean value.

def chararray_output(func, argtypes, errcheck=True): (source)

For functions that return a c_char_p array.

def const_string_output(func, argtypes, offset=None, decoding=None, cpl=False): (source)

Undocumented

def double_output(func, argtypes, errcheck=False, strarg=False, cpl=False): (source)

Generate a ctypes function that returns a double value.

def geom_output(func, argtypes, offset=None): (source)

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): (source)

Generate a ctypes function that returns a 64-bit integer value.

def int_output(func, argtypes, errcheck=None): (source)

Generate a ctypes function that returns an integer value.

def srs_output(func, argtypes): (source)

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): (source)

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): (source)

For functions that don't only return an error code that needs to be examined.

def voidptr_output(func, argtypes, errcheck=True): (source)

For functions that return c_void_p.