↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Geometric Functions And Operators

Computes box inscribed within the circle.

Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20

Signatures & examples

box ( circle ) → box
Computes box inscribed within the circle.
box(circle '<(0,0),2>') → (1.414213562373095,1.414213562373095),​(-1.414213562373095,-1.414213562373095)
box ( point ) → box
Converts point to empty box.
box(point '(1,0)') → (1,0),(1,0)
box ( point, point ) → box
Converts any two corner points to box.
box(point '(0,1)', point '(1,0)') → (1,1),(0,0)
box ( polygon ) → box
Computes bounding box of polygon.
box(polygon '((0,0),(1,1),(2,0))') → (2,1),(0,0)
Version history 3
  1. 12 → 13 changed
  2. 9.4 → 9.5 changed
  3. 7.3 → 7.4 changed

Definition snapshot: b7bd9cda · English manual source