[QGIS Commit] r9466 - trunk/qgis/python/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Oct 9 10:28:49 EDT 2008


Author: wonder
Date: 2008-10-09 10:28:49 -0400 (Thu, 09 Oct 2008)
New Revision: 9466

Modified:
   trunk/qgis/python/core/qgsgeometry.sip
Log:
Corrected python version of QgsGeometry.wkbBuffer()


Modified: trunk/qgis/python/core/qgsgeometry.sip
===================================================================
--- trunk/qgis/python/core/qgsgeometry.sip	2008-10-09 11:17:37 UTC (rev 9465)
+++ trunk/qgis/python/core/qgsgeometry.sip	2008-10-09 14:28:49 UTC (rev 9466)
@@ -71,7 +71,10 @@
        Returns the buffer containing this geometry in WKB format.
        You may wish to use in conjunction with wkbSize().
     */
-    unsigned char * wkbBuffer();
+    SIP_PYOBJECT wkbBuffer();
+%MethodCode
+  sipRes = PyString_FromStringAndSize(sipCpp->wkbBuffer(), sipCpp->wkbSize());
+%End
     
     /** 
        Returns the size of the WKB in wkbBuffer().



More information about the QGIS-commit mailing list