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.

Creating a User-Defined Coordinate System<br />

Some of these parameters are appropriate for several projections. They are not all<br />

appropriate for every projection.<br />

Example 6–2 creates a user-defined projected coordinate system. The first four<br />

columns are not the WKT information, but specify other fields in the MSDYD.CS_<br />

SRS table. The WKT information starts with PROJCS. This example is similar to an<br />

existing coordinate system, but has a different name, SRID, <strong>and</strong> central meridian.<br />

Example 6–2 Creating a User-Defined Projected Coordinate System<br />

INSERT INTO mdsys.cs_srs VALUES ('UTM Zone 44.5, Northern Hemisphere (WGS 84)',<br />

1082378, 1082378, '<strong>Oracle</strong>',<br />

'PROJCS["UTM Zone 44.5, Northern Hemisphere (WGS 84)",<br />

GEOGCS [ "WGS 84",<br />

DATUM ["WGS 84 ",<br />

SPHEROID ["WGS 84", 6378137.000000, 298.257224]],<br />

PRIMEM [ "Greenwich", 0.000000 ],<br />

UNIT ["Decimal Degree", 0.01745329251994330]],<br />

PROJECTION ["Transverse Mercator"],<br />

PARAMETER ["Scale_Factor", 0.999600],<br />

PARAMETER ["Central_Meridian", 84.000000],<br />

PARAMETER ["False_Easting", 500000.000000],<br />

UNIT ["Meter", 1.000000000000]]',NULL);<br />

Example 6–3 creates a user-defined geodetic coordinate system. The first four<br />

columns are not the WKT information, but specify other fields in the MSDYD.CS_<br />

SRS table. The WKT information starts with GEOGCS. This example includes an<br />

ellipsoid (SPHEROID) definition in which the semi-major axis <strong>and</strong> inverse<br />

flattening parameters are slightly changed from the WGS 84 coordinate system, as<br />

well as a different datum definition. Because the shift_x <strong>and</strong> shift_y parameter<br />

values are specified, all the shift, rotation, <strong>and</strong> scaling values must be specified.<br />

There is no projection information included for a geodetic coordinate system.<br />

Example 6–3 Creating a User-Defined Geodetic Coordinate System<br />

INSERT INTO mdsys.cs_srs VALUES<br />

( 'Longitude / Latitude (WGS 90)', 1008307, 1008307, '<strong>Oracle</strong>',<br />

'GEOGCS [ "Longitude / Latitude (WGS 90)",<br />

DATUM ["WGS 90",<br />

SPHEROID ["WGS 90", 6378137.032499, 298.257236], 100, 100, 0, 0, 0, 0, 0],<br />

PRIMEM [ "Greenwich", 0.000000 ],<br />

UNIT ["Decimal Degree", 0.01745329251994330]]',NULL);<br />

Coordinate Systems (<strong>Spatial</strong> <strong>Reference</strong> Systems) 6-19

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

Saved successfully!

Ooh no, something went wrong!