Name

st_get_bounding_box — returns BOX2D that is a bounding box of a shape.

Synopsis

st_get_bounding_box ( in shape any );

Description

returns BOX2D that is a bounding box of a shape.

Parameters

shape

Shape.

Return Types

Returns any.

Examples

Example24.661.Simple Use

SQL> SPARQL
SELECT bif:st_get_bounding_box(?o) ?o
FROM <http://geo-api-demo/>
WHERE { ?s ?p ?o }
ORDER BY ASC(str(?s))
o                                                                                 callret-3

BOX2D(0.0 0.0,2.0 3.0)                         BOX2D(0.0 0.0,2.0 3.0)
BOX2D(0.0 0.0,5.000001 5.000001)               GEOMETRYCOLLECTION(POINT(0.0 0.0),MULTILINESTRING((1.0 5.0,0.0 1.0,4.0 0.0,5.0 4.0),(1.0 5.0,1.0 0.0,4.0 0.0,4.0 5.0)),MULTIPOLYGON(((1.0 3.0,2.0 4.0,1.0 5.0,0.0 4.0,1.0 3.0)),((1.0 2.0,2.0 1.0,1.0 0.0,0.0 1.0,1.0 2.0))))
BOX2D(9.999999 20.999997,12.000001 25.000003)  LINESTRING(10.0 21.0,12.0 23.0,10.0 25.0)
BOX2D(0.0 0.0,2.0 5.000001)                    MULTIPOLYGON(((1.0 3.0,2.0 4.0,1.0 5.0,0.0 4.0,1.0 3.0)),((1.0 2.0,2.0 1.0,1.0 0.0,0.0 1.0,1.0 2.0)))
BOX2D(1.0 3.0,1.0 3.0)                         POINT(1 3)
BOXZM(0.0 1.0 2.0 3.0,0.0 1.0 2.0 3.0)         POINTZM(0.0 1.0 2.0 3.0)
BOX2D(0.0 3.0,2.0 5.000001)                    POLYGON((1.0 3.0,2.0 4.0,1.0 5.0,0.0 4.0,1.0 3.0))
BOX2D(0.500000 3.500000,2.500000 5.500001)     POLYGON((1.500000 3.500000,2.500000 4.500000,1.500000 5.500000,0.500000 4.500000,1.500000 3.500000))
BOX2D(0.0 3.0,2.0 5.000001)                    POLYGON((1.0 3.0,2.0 4.0,1.0 5.0,0.0 4.0,1.0 3.0),(1.0 3.500000,1.500000 4.0,1.0 4.500000,0.500000 4.0,1.0 3.500000))