Esempio n. 1
0
 def relate_pattern(self, other, pattern):
     """
     Return true if the elements in the DE-9IM intersection matrix for the
     two Geometries match the elements in pattern.
     """
     if not isinstance(pattern, str) or len(pattern) > 9:
         raise GEOSException('invalid intersection matrix pattern')
     return capi.geos_relatepattern(self.ptr, other.ptr, force_bytes(pattern))
Esempio n. 2
0
 def relate_pattern(self, other, pattern):
     """
     Returns true if the elements in the DE-9IM intersection matrix for the
     two Geometries match the elements in pattern.
     """
     if not isinstance(pattern, basestring) or len(pattern) > 9:
         raise GEOSException('invalid intersection matrix pattern')
     return capi.geos_relatepattern(self.ptr, other.ptr, pattern)
Esempio n. 3
0
    def relate_pattern(self, other, pattern):
        """
<<<<<<< HEAD
        Returns true if the elements in the DE-9IM intersection matrix for the
        two Geometries match the elements in pattern.
        """
        if not isinstance(pattern, six.string_types) or len(pattern) > 9:
=======
        Return true if the elements in the DE-9IM intersection matrix for the
        two Geometries match the elements in pattern.
        """
        if not isinstance(pattern, str) or len(pattern) > 9:
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
            raise GEOSException('invalid intersection matrix pattern')
        return capi.geos_relatepattern(self.ptr, other.ptr, force_bytes(pattern))

    def touches(self, other):
        """
<<<<<<< HEAD
        Returns true if the DE-9IM intersection matrix for the two Geometries
=======
        Return true if the DE-9IM intersection matrix for the two Geometries
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        is FT*******, F**T***** or F***T****.
        """
        return capi.geos_touches(self.ptr, other.ptr)

    def within(self, other):
        """
<<<<<<< HEAD