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_UTIL.GETVERTICES<br />

SDO_UTIL.GETVERTICES<br />

Format<br />

Description<br />

Parameters<br />

Usage Notes<br />

SDO_UTIL.GETVERTICES(<br />

geometry IN SDO_GEOMETRY<br />

) RETURN VERTEX_SET_TYPE;<br />

Returns the coordinates of the vertices of the input geometry.<br />

geometry<br />

Geometry for which to return the coordinates of the vertices.<br />

This function returns an object of VERTEX_SET_TYPE, which consists of a table of<br />

objects of VERTEX_TYPE. <strong>Oracle</strong> <strong>Spatial</strong> defines the type VERTEX_SET_TYPE as:<br />

CREATE TYPE vertex_set_type as TABLE OF vertex_type;<br />

<strong>Oracle</strong> <strong>Spatial</strong> defines the object type VERTEX_TYPE as:<br />

CREATE TYPE vertex_type AS OBJECT<br />

(x NUMBER,<br />

y NUMBER,<br />

z NUMBER,<br />

w NUMBER,<br />

id NUMBER);<br />

This function can be useful in finding a vertex that is causing a geometry to be<br />

invalid. For example, if you have identified a geometry as invalid by using the<br />

SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT function or the SDO_<br />

GEOM.VALIDATE_LAYER_WITH_CONTEXT procedure (both of which are<br />

documented in Chapter 13), you can use the GETVERTICES function to view the<br />

vertices in tabular format.<br />

19-18 <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!