[Qgis-developer] calling createEmptyDataSource from python

Stefanie Tellex stefie10 at media.mit.edu
Wed Jun 4 22:34:55 EDT 2008


Hi,

Is there a way to call the ogr provider's createEmptyDataSource function 
from python?  I could try using ctypes, but I wasn't sure if it would 
work with the sip interface.  Combining two ways of talking to C/C++ 
from python seems hairy.

I played around with adding it via SIP, but it also got hairy. SIP seems 
to like separate modules for C and C++ interfaces, and there aren't 
(yet) provider specific python modules.

I can do the work to add it to the python interface, but advice on the 
best way to do it would be great.

Thanks!

Stefanie


More information about the Qgis-developer mailing list