With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

Determining if geometries relate to each other

The spatial operations allow you to determine the relationship between two or more geometry objects. Some examples are:

• Geometries are next to each other
• Geometries are contained by one another
• Geometries intersect boundaries

In the last chapter, you used the `contain` operation. Let's start by revisiting it:

```boolean contain@spatial(
Geometry containingGeometry,
Geometry containedGeometry,
double tolerance)```

The `contain()` function returns `true` if the `containedGeometry` ` `is contained by the `containingGeometry`, otherwise it returns `false`. A geometry is considered contained by another geometry if all the points that make up the former is completely within the shape of the latter. In particular, a geometry is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required