I'd like to compare geometries using DE-9IM patterns in my QGIS plugin written in Python. I've tried to instantiate QgsGeos but it seems there's no such module in qgis.core, as reported by the following Python exception :
> from qgis.core import QgsGeos Traceback (most recent call last): File "<input>", line 1, in <module> ImportError: cannot import name QgsGeos
I could also use shapely but I don't know if this module is included in all QGIS distributions.
Any suggestion ?