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

DECLARE<br />

geom_segment SDO_GEOMETRY;<br />

BEGIN<br />

SELECT a.route_geometry into geom_segment FROM lrs_routes a<br />

WHERE a.route_name = 'Route1';<br />

SDO_LRS.RESET_MEASURE (geom_segment);<br />

-- Update <strong>and</strong> insert geometries into table, to display later.<br />

UPDATE lrs_routes a SET a.route_geometry = geom_segment<br />

WHERE a.route_id = 1;<br />

END;<br />

/<br />

PL/SQL procedure successfully completed.<br />

-- Display the segment, with all measures set to null.<br />

SELECT a.route_geometry FROM lrs_routes a WHERE a.route_id = 1;<br />

ROUTE_GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDIN<br />

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

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

2, 2, NULL, 2, 4, NULL, 8, 4, NULL, 12, 4, NULL, 12, 10, NULL, 8, 10, NULL, 5, 1<br />

4, NULL))<br />

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