[gdal-dev] question on gdal.py vs gdal.h (C vs python bindings) on Using Create()

Jared Rubin JARED.RUBIN at saic.com
Fri Dec 28 10:50:38 EST 2007


Why is it that the   C/C++ options allow for sending a char** of options but 
the python version doesn't? The C/C++  is useful for sending metatdata to the 
driver, but I can't do this with the python version?
thanks
Jared

from gdal.h

GDALDatasetH CPL_DLL CPL_STDCALL GDALCreate( GDALDriverH hDriver,
                                 const char *, int, int, int, GDALDataType,
                                 char ** );


from gdal.py

def Create(*args, **kwargs):
        """
Create(self, char name, int xsize, int ysize, int bands=1, GDALDataType, 
eType=GDT_Byte, char options=0) -> Dataset

        """
        return _gdal.Driver_Create(*args, **kwargs)


More information about the gdal-dev mailing list