#NEWLINE# def _create_collection( self , length , items ) : #NEWLINE# #INDENT# geoms = get_pointer_arr ( length ) #NEWLINE# for ( i , g ) in enumerate ( items ) : #NEWLINE# #INDENT# geoms [ i ] = capi . geom_clone ( getattr ( g , 'ptr' , g ) ) #NEWLINE# #UNINDENT# return capi . create_collection ( c_int ( self . _typeid ) , byref ( geoms ) , c_uint ( length ) )