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.

SDO_LRS.VALID_GEOM_SEGMENT<br />

SDO_LRS.VALID_GEOM_SEGMENT<br />

Format<br />

Description<br />

Parameters<br />

Usage Notes<br />

Examples<br />

SDO_LRS.VALID_GEOM_SEGMENT(<br />

geom_segment IN SDO_GEOMETRY<br />

[, dim_array IN SDO_DIM_ARRAY]<br />

) RETURN VARCHAR2;<br />

Checks if a geometry object is a valid geometric segment.<br />

geom_segment<br />

Geometric segment to be checked for validity.<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 />

This function returns TRUE if geom_segment is valid <strong>and</strong> FALSE if geom_<br />

segment is not valid.<br />

Measure information is assumed to be stored in the last element of the SDO_DIM_<br />

ARRAY in the <strong>Oracle</strong> <strong>Spatial</strong> metadata.<br />

This function only checks for geometry type <strong>and</strong> number of dimensions of the<br />

geometric segment. To further validate measure information, use the SDO_LRS.IS_<br />

GEOM_SEGMENT_DEFINED function.<br />

The _3D format of this function (SDO_LRS.VALID_GEOM_SEGMENT_3D) is<br />

available. For information about _3D formats of LRS functions, see Section 7.4.<br />

The following example checks if the geometric segment representing Route 1 is<br />

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

16-104 <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!