Contribute to project

LearnOverpass

Area pivot (pivot) Improve page

The pivot filter selects the element of the chosen type that defines the outline of the given area.

The input set can be changed with an adapted prefix notation. As for all filters, the result set is specified by the whole statement, not the individual filter.

It consists of an opening parenthesis. Then follows the keyword pivot. The filter ends with a closing parenthesis.

The statement finds for each area in the input set the respective element that the area has been generated from. Which is either a multipolygon relation or a way.

Examples:

way(pivot);
rel(pivot);

The example with modified input set:

way(pivot.a);
rel(pivot.a);