#NEWLINE# @ property #NEWLINE# def wkb( self ) : #NEWLINE# #INDENT# 'Returns the WKB representation of the Geometry.' #NEWLINE# if ( sys . byteorder == 'little' ) : #NEWLINE# #INDENT# byteorder = 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# byteorder = 0 #NEWLINE# #UNINDENT# sz = self . wkb_size #NEWLINE# buf = ( c_ubyte * sz ) ( ) #NEWLINE# capi . to_wkb ( self . ptr , byteorder , byref ( buf ) ) #NEWLINE# return six . memoryview ( string_at ( self , sz ) )