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.SIMPLIFY<br />

NULL,<br />

SDO_ELEM_INFO_ARRAY(1,2,1), -- one line string, straight segments<br />

SDO_ORDINATE_ARRAY(<br />

2,2,0, -- Starting point - Exit1; 0 is measure from start.<br />

2,4,2, -- Exit2; 2 is measure from start.<br />

8,4,8, -- Exit3; 8 is measure from start.<br />

12,4,12, -- Exit4; 12 is measure from start.<br />

12,10,NULL, -- Not an exit; measure automatically calculated <strong>and</strong> filled.<br />

8,10,22, -- Exit5; 22 is measure from start.<br />

5,14,27) -- Ending point (Exit6); 27 is measure from start.<br />

),<br />

6 -- threshold value for geometry simplification<br />

) FROM DUAL;<br />

SDO_UTIL.SIMPLIFY(SDO_GEOMETRY(3302,--LINESTRING,3DIMENSIONS(X,Y,M),3RDISLINEARR<br />

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

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

2, 2, 0, 12, 4, 12, 5, 14, 27))<br />

Figure 19–1 shows the result of this example. In Figure 19–1, the thick solid black<br />

line is the resulting geometry, <strong>and</strong> the thin solid light line between the start <strong>and</strong> end<br />

points is the input geometry.<br />

<strong>Spatial</strong> Utility Subprograms 19-33

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

Saved successfully!

Ooh no, something went wrong!