10.12.2012 Views

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SDO_AGGR_MBR<br />

Format<br />

Description<br />

Parameters<br />

Usage Notes<br />

SDO_AGGR_MBR(<br />

geom SDO_GEOMETRY<br />

) RETURN SDO_GEOMETRY;<br />

SDO_AGGR_MBR<br />

Returns the minimum bounding rectangle (MBR) of the specified geometries, that<br />

is, a single rectangle that minimally encloses the geometries.<br />

geom<br />

Geometry objects.<br />

Use this function instead of the deprecated SDO_TUNE.EXTENT_OF function to<br />

return the MBR of geometries. The SDO_TUNE.EXTENT_OF function is limited to<br />

two-dimensional geometries, whereas this function is not.<br />

All input geometries must have 4-digit SDO_GTYPE values (explained in<br />

Section 2.2.1).<br />

This function does not return an MBR geometry if a proper MBR cannot be<br />

constructed. Specifically:<br />

■ If the input geometries are all null, the function returns a null geometry.<br />

■ If all data in the input geometries is on a single point, the function returns the<br />

point.<br />

■ If all data in the input geometries consists of points on a straight line, the<br />

function returns a two-point line.<br />

<strong>Spatial</strong> Aggregate Functions 14-9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!