Coordinate Reference Systems created from the EPSG database have a wrong 
BursaWolf ppm parameter
------------------------------------------------------------------------------------------------

                 Key: GEOT-3482
                 URL: http://jira.codehaus.org/browse/GEOT-3482
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
            Reporter: Julien
            Priority: Critical


The parsing of the EPSG database has an issue for BursaWolf parameters: the ppm 
(the last parameter) is interpreted as being in microradians and having to be 
converted into arc seconds, although it is unitless. Thus systems created from 
the EPSG database which contain a Position Vector Transformation will have a 
ppm parameter equal to ppm_EPSG * 10e-6 / (1 / 3600.0 * Pi / 180)) instead of 
just being ppm_EPSG.
This can be verified by creating a system from the EPSG database, exporting it 
to WKT and taking a look at the last parameter of the TOWGS84 tag. 
According to my analysis, this is due to a mistake in the code of 
setBursaWolfParameter in AbstractEpsgFactory and DirectEpsgFactory:
        if (code >= 8605) {
            if      (code <= 8607) target = SI   .METER;
            else if (code <= 8710) target = NonSI.SECOND_ANGLE;
            else if (code == 8611) target = Units.PPM;
        }

Code 8611 effectively corresponds to the code of the ppm parameter. But because 
8611<=8710, the target for the ppm parameter is always interpreted as 
NonSI.SECOND_ANGLE (the line "else if (code == 8611) target = Units.PPM;" is 
never executed).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to