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.

Parameters<br />

Usage Notes<br />

Examples<br />

SDO_CS.TRANSFORM<br />

geom<br />

Geometry whose representation is to be transformed using another coordinate<br />

system. The input geometry must have a valid non-null SRID, that is, a value in the<br />

SRID column of the MDSYS.CS_SRS table (described in Section 6.4.1).<br />

dim<br />

Dimensional information array corresponding to geom, usually selected from one of<br />

the xxx_SDO_GEOM_METADATA views (described in Section 2.4).<br />

to_srid<br />

The SRID of the coordinate system to be used for the transformation. It must be a<br />

value in the SRID column of the MDSYS.CS_SRS table (described in Section 6.4.1).<br />

to_srname<br />

The name of the coordinate system to be used for the transformation. It must be a<br />

value (specified exactly) in the CS_NAME column of the MDSYS.CS_SRS table<br />

(described in Section 6.4.1).<br />

Transformation can be done only between two different georeferenced coordinate<br />

systems or between two different local coordinate systems.<br />

An exception is raised if geom, to_srid, or to_srname is invalid. For geom to be<br />

valid for this function, its definition must include an SRID value matching a value<br />

in the SRID column of the MDSYS.CS_SRS table (described in Section 6.4.1).<br />

The following example transforms the cola_c geometry to a representation that<br />

uses SRID value 8199. (This example uses the definitions from the example in<br />

Section 6.8.)<br />

-- Return the transformation of cola_c using to_srid 8199<br />

-- ('Longitude / Latitude (Arc 1950)')<br />

SELECT c.name, SDO_CS.TRANSFORM(c.shape, m.diminfo, 8199)<br />

FROM cola_markets_cs c, user_sdo_geom_metadata m<br />

WHERE m.table_name = 'COLA_MARKETS_CS' AND m.column_name = 'SHAPE'<br />

AND c.name = 'cola_c';<br />

NAME<br />

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

Coordinate System Transformation Subprograms 15-3

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

Saved successfully!

Ooh no, something went wrong!