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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameters<br />

Usage Notes<br />

Examples<br />

geom_segment<br />

Geometric segment.<br />

SDO_LRS.GET_PREV_SHAPE_PT_MEASURE<br />

measure<br />

Measure value on the geometric segment for which to return the measure value of<br />

the previous shape point.<br />

point<br />

Point for which to return the measure value of the previous shape point. If point is<br />

not on geom_segment, the point on the geometric segment closest to the specified<br />

point is computed, <strong>and</strong> the measure value of the closest shape point before that<br />

point is returned.<br />

dim_array<br />

Dimensional information array corresponding to geom_segment, usually selected<br />

from one of the xxx_SDO_GEOM_METADATA views (described in Section 2.4).<br />

If measure or point identifies the start point of the geometric segment, a null<br />

value is returned.<br />

An exception is raised if measure is not a valid value for geom_segment or if<br />

point is not a valid LRS point.<br />

Contrast this function with SDO_LRS.GET_NEXT_SHAPE_PT_MEASURE, which<br />

returns the measure value of the next shape point on a geometric segment after a<br />

specified measure value or LRS point.<br />

The _3D format of this function (SDO_LRS.GET_PREV_SHAPE_PT_MEASURE_<br />

3D) is available. For information about _3D formats of LRS functions, see<br />

Section 7.4.<br />

The following example returns the measure value of the closest shape point to<br />

measure 14 <strong>and</strong> before measure 14 on the geometric segment representing Route 1.<br />

(This example uses the definitions from the example in Section 7.7.)<br />

SELECT SDO_LRS.GET_PREV_SHAPE_PT_MEASURE(a.route_geometry, 14)<br />

FROM lrs_routes a WHERE a.route_id = 1;<br />

SDO_LRS.GET_PREV_SHAPE_PT_MEASURE(A.ROUTE_GEOMETRY,14)<br />

Linear Referencing Subprograms 16-59

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

Saved successfully!

Ooh no, something went wrong!