Skip to content
Permalink
Browse files
Corrected python version of QgsGeometry.wkbBuffer()
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9466 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Oct 9, 2008
1 parent 62ea0be commit 7a5649aefa68ac55a10ca68bc98d923e7400bda5
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/core/qgsgeometry.sip
@@ -71,7 +71,10 @@ class QgsGeometry
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().

0 comments on commit 7a5649a

Please sign in to comment.