#NEWLINE# def check_geom( result , func , cargs ) : #NEWLINE# #INDENT# 'Error checking on routines that return Geometries.' #NEWLINE# if ( not result ) : #NEWLINE# #INDENT# raise GEOSException ( ( 'Error encountered checking Geometry returned from GEOS C function "%s".' % cargs . __name__ ) ) #NEWLINE# #UNINDENT# return result