Return 1 if two geometries satisfy a spatial relationship.
The function iterates for every member of a collection if one or the two geometries are collections