Returns a bounding box that encloses a set of geometries

Works with the following datatypes:

This function works with 2.1 endpoint(s). What does this mean? »

The extent(...) generates a rectangle that completely encompass a set of points or geometries, to get the rectangle that surrounds all of the crimes in Chicago in 2014:


This can be very useful in generating heat maps or to describe the geographic area affected by a given dataset.