is_closed

Tests whether a geometry is closed.

Parameter 1 - the geometry to be tested.

Returns: A Boolean value, true if the geometry is a simple area or a simple line whose endpoints are coincident and false otherwise. Returns null if the parameter is not a geometry.

Note: for 3D geometries the z value is ignored, so a closed simple line will have the same x and y coordinates, but may have different z coordinates.