'Return true if the elements in the DE-9IM intersection matrix for the
two Geometries match the elements in pattern.'

def relate_pattern(self, other, 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))
