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.

SDO_UTIL.CONVERT_UNIT<br />

Format<br />

Description<br />

Parameters<br />

Usage Notes<br />

SDO_UTIL.CONVERT_UNIT(<br />

input_value IN NUMBER,<br />

from_unit IN VARCHAR2,<br />

to_unit IN VARCHAR2<br />

) RETURN NUMBER;<br />

SDO_UTIL.CONVERT_UNIT<br />

Converts values from one angle, area, or distance unit of measure to another.<br />

input_value<br />

Number of units to be converted. For example, to convert 10 decimal degrees to<br />

radians, specify 10.<br />

from_unit<br />

The unit of measure from which to convert the input value. Must be a value from<br />

the SDO_UNIT column of the MDSYS.ANGLE_UNITS table (described in<br />

Section 6.4.2), the MDSYS.SDO_AREA_UNITS table (described in Section 2.6), or<br />

the MDSYS.SDO_DIST_UNITS table (described in Section 2.6). For example, to<br />

convert decimal degrees to radians, specify Degree.<br />

to_unit<br />

The unit of measure into which to convert the input value. Must be a value from the<br />

SDO_UNIT column of the same table used for from_unit. For example, to convert<br />

decimal degrees to radians, specify Radian.<br />

The value returned by this function might not be correct at an extremely high<br />

degree of precision because of the way internal mathematical operations are<br />

performed, especially if they involve small numbers or irrational numbers (such as<br />

pi). For example, converting 1 decimal degree into decimal minutes results in the<br />

value 60.0000017.<br />

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

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

Saved successfully!

Ooh no, something went wrong!