#NEWLINE# def check_srs( result , func , cargs ) : #NEWLINE# #INDENT# if isinstance ( cargs , ( int , long ) ) : #NEWLINE# #INDENT# result = c_void_p ( result ) #NEWLINE# #UNINDENT# if ( not result ) : #NEWLINE# #INDENT# raise SRSException ( ( 'Invalid spatial reference pointer returned from "%s".' % func . __name__ ) ) #NEWLINE# #UNINDENT# return result