def check_cs_op(result, func, cargs):
 if (result == 0):
  raise GEOSException('Could not set value on coordinate sequence')
 else:
  return result

def check_cs_op ( result , func , cargs ) : if ( result == 0 ) : raise GEOSException ( 'Could not set value on coordinate sequence' ) else : return result
checks the status code of a coordinate sequence operation .