raising exception in case of error in libgeos