Skip to content

Commit 7a5649a

Browse files
author
wonder
committedOct 9, 2008

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.