[MetaCRS] Oracle WKT
Frank Warmerdam
warmerdam at pobox.com
Thu Jul 24 15:49:36 EDT 2008
Norm Olsen wrote:
> Hello Frank . . .
>
> Yes, Oracle 10 is significantly different from Oracle 9. Never seen an Oracle 8, I don't think. Could you send me some samples?
Norm,
Currently we only have Oracle 10 installed, but traditionally the OGR
Oracle spatial driver worked back as far as Oracle 8. Have you seen
the WKT definitions for Oracle 11? I wonder if we could provide some
advice to Oracle for future move to a more standard form. Perhaps we
could do this with a clue-bat. :-)
> Most all of these issues have been addressed in CS-MAP. Off the top of my head, the issues are:
>
> 1> The names of the definitions are all different, and most now include an EPSG reference. This can be helpful, but cannot be relied upon.
>
> 2> The PROJECTION element now rarely contains the name of a projection, but has a reference to an EPSG Coordinate System Operation definition. This is not the EPSG Operation _Method_ code, it is an EPSG Coordinate _Operation_ code. A table which mapped the EPSG Operation Code to a projection was built to CS-MAP to handle this. Of course, this is a maintenance nightmare.
>
> 3> In some cases, there are no PARAMETER elements for the coordinate system definition. Presumably, having the EPSG Coordinate Operation Code you can get the parameter values from the EPSG database. Perhaps for Oracle this is a piece of cake; not so for us mere mortals.
>
> 4> Oracle 10 will now often include datum transformation parameters, but without the benefit of the TOWGS84 element. Of course, this presents all the problems associated with the TOWGS84 element. Code that parses the DATUM element will need to be able to handle these extra seven parameter values appropriately. (I think there are always seven, my memory could be wrong.)
>
> 5> Many numerical values are given to 20 or so decimal places; could cause problems with some parsers.
>
> Handling Oracle 10 was your typical WKT pain in the posterior problem. Distinguishing between 9 and 10 is also tricky, which we needed to do. My condolences to whomever has to do this. I am available for consultation and, perhaps more importantly, consolation and commiseration.
Excellent information! I can see this will be somewhat harder than
the modest massaging I do for ESRI WKT.
I gather the CS-MAP code will be public shortly, so perhaps when that
occurs you could provide a few pointers to the corresponding code in the
CS-MAP code tree.
Looking up EPSG GCS or PCS codes is easy in my context which at least
might help.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the MetaCRS
mailing list