Skip to content

Commit d6cd10c

Browse files
author
wonder
committedOct 9, 2008
Corrected python version of QgsGeometry.wkbBuffer()
git-svn-id: http://svn.osgeo.org/qgis/trunk@9466 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3263d1a commit d6cd10c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎python/core/qgsgeometry.sip

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ class QgsGeometry
7171
Returns the buffer containing this geometry in WKB format.
7272
You may wish to use in conjunction with wkbSize().
7373
*/
74-
unsigned char * wkbBuffer();
74+
SIP_PYOBJECT wkbBuffer();
75+
%MethodCode
76+
sipRes = PyString_FromStringAndSize(sipCpp->wkbBuffer(), sipCpp->wkbSize());
77+
%End
7578

7679
/**
7780
Returns the size of the WKB in wkbBuffer().

0 commit comments

Comments
 (0)
Please sign in to comment.