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_LRS.DYNAMIC_SEGMENT<br />

Usage Notes<br />

Examples<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 />

start_measure<br />

Start measure of the geometric segment.<br />

end_measure<br />

End measure of the geometric segment.<br />

tolerance<br />

Tolerance value (see Section 1.5.5 <strong>and</strong> Section 7.6).<br />

An exception is raised if geom_segment, start_measure, or end_measure is<br />

invalid.<br />

The direction <strong>and</strong> measures of the resulting geometric segment are preserved.<br />

For more information about clipping a geometric segment, see Section 7.5.3.<br />

The following example clips the geometric segment representing Route 1, returning<br />

the segment from measures 5 through 10. This segment might represent a<br />

construction zone. (This example uses the definitions from the example in<br />

Section 7.7.)<br />

SELECT SDO_LRS.DYNAMIC_SEGMENT(route_geometry, 5, 10)<br />

FROM lrs_routes WHERE route_id = 1;<br />

SDO_LRS.DYNAMIC_SEGMENT(ROUTE_GEOMETRY,5,10)(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y<br />

--------------------------------------------------------------------------------<br />

SDO_GEOMETRY(3302, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(<br />

5, 4, 5, 8, 4, 8, 10, 4, 10))<br />

16-32 <strong>Oracle</strong> <strong>Spatial</strong> User’s <strong>Guide</strong> <strong>and</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!