public function relate(Geometry $geometry, string $matrix) : bool
    {
        return GeometryEngineRegistry::get()->relate($this, $geometry, $matrix);
    }
public function relate(Geometry $geometry, string $matrix) : bool
    {
        return GeometryEngineRegistry::get()->relate($this, $geometry, $matrix);
    }
public function relate ( Geometry $ geometry , string $ matrix ) : bool { return GeometryEngineRegistry :: get ( ) -> relate ( $ this , $ geometry , $ matrix ) ; }
Returns whether this geometry is spatially related to another geometry.

This method tests for intersections between the interior, boundary and exterior of the
two geometries as specified by the values in the DE-9IM matrix pattern.

This is especially useful for testing compound checks of intersection, crosses, etc. in one step.

@see http://en.wikipedia.org/wiki/DE-9IM

@noproxy

@param Geometry $geometry
@param string   $matrix

@return bool

@throws GeometryEngineException If the operation is not supported by the geometry engine.
Returns whether this geometry is spatially related to another geometry .