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.

Examples<br />

Related Topics<br />

SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT<br />

The following example validates the geometry objects stored in the SHAPE column<br />

of the COLA_MARKETS table. The example includes the creation of the result table.<br />

For this example, a deliberately invalid geometry was inserted into the table before<br />

the validation was performed.<br />

-- Is a layer valid? (First, create the result table.)<br />

CREATE TABLE val_results (sdo_rowid ROWID, result varchar2(1000));<br />

-- (Next statement must be on one comm<strong>and</strong> line.)<br />

CALL SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT('COLA_MARKETS','SHAPE','VAL_RESULTS');<br />

Call completed.<br />

SQL> SELECT * from val_results;<br />

SDO_ROWID<br />

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

RESULT<br />

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

Rows Processed <br />

AAABXNAABAAAK+YAAC<br />

13349 [Element ] [Ring ][Edge ][Edge ]<br />

■ SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT<br />

Geometry Subprograms 13-55

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

Saved successfully!

Ooh no, something went wrong!