(self, err, *geoms)
Raise TopologicalError if geoms are invalid.

        Else, raise original error.
Raise TopologicalError if geoms are invalid.
Raise TopologicalError if geoms are invalid .
def _check_topology(self, err, *geoms):
        """Raise TopologicalError if geoms are invalid.

        Else, raise original error.
        """
        for geom in geoms:
            if not geom.is_valid:
                raise TopologicalError(
                    "The operation '%s' could not be performed. "
                    "Likely cause is invalidity of the geometry %s" % (
                        self.fn.__name__, repr(geom)))
        raise err
def _check_topology ( self , err , * geoms ) : for geom in geoms : if not geom . is_valid : raise TopologicalError ( "The operation '%s' could not be performed. " "Likely cause is invalidity of the geometry %s" % ( self . fn . __name__ , repr ( geom ) ) ) raise err