Martin Desruisseaux ha scritto:
> Andrea Aime a écrit :

> The WKT parser do not need any external knownledge for supporting the broken
> Bursa-Wolf parameters. But for name substitution, we need informations from 
> the
> EPSG database (or from some other external resource). In the example from last
> email, we have to substitute "British Columbia Albers (EPSG OP 19984)" by
> "Albers Equal Area". I don't think that there is any regex rule allowing us to
> guess (in the general case) what the text should be without looking in the 
> EPSG
> database for code 19984.
> 
> I would prefer to keep the WKT parser independent of EPSG database. In 
> addition,
> if Oracle use "British Columbia Albers (EPSG OP 19984)" instead of "Albers 
> Equal
> Area", maybe they apply this strange usage not only in WKT but on their whole
> spatial framework. In which case a OracleMathTransformFactory may have some
> value in order to support the Oracle names at a more fundamental level than 
> WKT
> parser.

Indeed the brokeness goes beyond, here is a sample:

ROJCS["OSGB 1936 / British National Grid", GEOGCS [ "OSGB 1936", DATUM 
["OSGB 1936 (EPSG ID 6277)", SPHEROID ["Airy 1830 (EPSG ID 7001)", 
6377563.396, 299.3249646], 446.448, -125.157, 542.06, 
.1499999999999998453747986861315636107214, 
.246999999999999745383835169829974745654, 
.841999999999999132037203291485177068183, 1.000020489], PRIMEM [ 
"Greenwich", 0.000000 ], UNIT ["Decimal Degree", 0.01745329251994328]], 
PROJECTION ["British National Grid (EPSG OP 19916)"], PARAMETER 
["Latitude_Of_Origin", 49], PARAMETER ["Central_Meridian", -2], 
PARAMETER ["Scale_Factor", .9996012717], PARAMETER ["False_Easting", 
400000], PARAMETER ["False_Northing", -100000], UNIT ["Meter", 1]]

As you can see, spheroid and datum are broken, too.
So, is a math transform factory enough?
Besides that, should I write one, how do I wire it up so that
only the Oracle data store uses it?

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to