25.04.2013 Views

View PDF

View PDF

View PDF

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_MIGRATE.TO_CURRENT<br />

Usage Notes for Object-Relational Model Layer and Single Geometry Upgrade<br />

The specified geometry or all geometry objects in the specified layer are upgraded so<br />

that their SDO_GTYPE and SDO_ETYPE values are in the format of the current<br />

release:<br />

■ SDO_GTYPE values of 4 digits are created, using the format (DLTT) shown in<br />

Table 2–1 in Section 2.2.1.<br />

■ SDO_ETYPE values are as discussed in Section 2.2.4.<br />

Geometries are ordered so that exterior rings are followed by their interior rings, and<br />

coordinates are saved in the correct rotation (counterclockwise for exterior rings, and<br />

clockwise for interior rings).<br />

Usage Notes for Relational Model Upgrade<br />

Examples<br />

If you are you upgrading from the Spatial relational model (release 8.1.5 or earlier),<br />

consider the following when using this procedure:<br />

■ The new table must be created before you call this procedure.<br />

■ If the data to be upgraded is geodetic, the tolerance value (SDO_TOLERANCE<br />

column value in the _SDODIM table or view) must be expressed in<br />

decimal degrees (for example, 0.00000005).<br />

■ The procedure converts geometries from the relational model to the<br />

object-relational model.<br />

■ A commit operation is performed by this procedure.<br />

■ If any of the upgrade steps fails, nothing is upgraded for the layer.<br />

■ layer is the underlying layer name, without the _SDOGEOM suffix.<br />

■ The old SDO_GID is stored in gidcolumn.<br />

■ SDO_GTYPE values of 4 digits are created, using the format (DLTT) shown in<br />

Table 2–1 in Section 2.2.1.<br />

■ SDO_ETYPE values are created, using the values discussed in Section 2.2.4.<br />

■ The procedure orders geometries so that exterior rings are followed by their<br />

interior rings, and it saves coordinates in the correct rotation (counterclockwise for<br />

exterior rings, and clockwise for interior rings).<br />

The following example changes the definitions of geometry objects in the ROADS<br />

table from the format of a release later than 8.1.5 to the format of the current release.<br />

EXECUTE SDO_MIGRATE.TO_CURRENT('ROADS');<br />

26-4 Oracle Spatial Developer’s Guide

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

Saved successfully!

Ooh no, something went wrong!