25.25 SDO_GEOM.SDO_MIN_MBR_ORDINATE
Format
SDO_GEOM.SDO_MIN_MBR_ORDINATE( geom IN SDO_GEOMETRY, ordinate_pos IN NUMBER ) RETURN NUMBER;
or
SDO_GEOM.SDO_MIN_MBR_ORDINATE( geom IN SDO_GEOMETRY, dim IN SDO_DIM_ARRAY, ordinate_pos IN NUMBER ) RETURN NUMBER;
Description
Returns the minimum value for the specified ordinate (dimension) of the minimum bounding rectangle of a geometry object.
Parameters
- geom
-
Geometry object.
- dim
-
Dimensional information array corresponding to
geom
, usually selected from one of the xxx_SDO_GEOM_METADATA views (described in Geometry Metadata Views). - ordinate_pos
-
Position of the ordinate (dimension) in the definition of the geometry object: 1 for the first ordinate, 2 for the second ordinate, and so on. For example, if
geom
has X, Y ordinates, 1 identifies the X ordinate and 2 identifies the Y ordinate.
Usage Notes
None.
Examples
The following example returns the minimum X (first) ordinate value of the minimum bounding rectangle of the cola_d
geometry in the COLA_MARKETS table. (The example uses the definitions and data from Simple Example: Inserting_ Indexing_ and Querying Spatial Data. The minimum bounding rectangle of cola_d
is returned in the example for the SDO_GEOM.SDO_MBR function.)
SELECT SDO_GEOM.SDO_MIN_MBR_ORDINATE(c.shape, m.diminfo, 1) FROM cola_markets c, user_sdo_geom_metadata m WHERE m.table_name = 'COLA_MARKETS' AND m.column_name = 'SHAPE' AND c.name = 'cola_d'; SDO_GEOM.SDO_MIN_MBR_ORDINATE(C.SHAPE,M.DIMINFO,1) -------------------------------------------------- 6
Related Topics
Parent topic: SDO_GEOM Package (Geometry)