Extra transformations chained unexpectedly
------------------------------------------

                 Key: GEOT-1419
                 URL: http://jira.codehaus.org/browse/GEOT-1419
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.4-M4, 2.3.2
            Reporter: Andrea Aime
            Assignee: Martin Desruisseaux
             Fix For: 2.5-M0


The following program demonstrates an unexpected behaviour:

{code}
import org.geotools.referencing.CRS;
import org.opengis.referencing.crs.CoordinateReferenceSystem;


public class TestConversion {
     public static void main(String[] args) throws Exception {
         CoordinateReferenceSystem crs1 = CRS.decode("EPSG:26713");
         CoordinateReferenceSystem crs2 = CRS.parseWKT(crs1.toWKT());
         System.out.println("Equal: " + CRS.equalsIgnoreMetadata(crs1, 
crs2));
         System.out.println("Transform: " + CRS.findMathTransform(crs1, 
crs2));
     }
}
{code}

It's output being:

{code}
Equal: false
Transform: CONCAT_MT[INVERSE_MT[PARAM_MT["Transverse_Mercator",
       PARAMETER["semi_major", 6378206.4],
       PARAMETER["semi_minor", 6356583.8],
       PARAMETER["central_meridian", -105.0],
       PARAMETER["latitude_of_origin", 0.0],
       PARAMETER["scale_factor", 0.9996],
       PARAMETER["false_easting", 500000.0],
       PARAMETER["false_northing", 0.0]]],
   PARAM_MT["Molodenski",
     PARAMETER["dim", 2],
     PARAMETER["dx", 0.0],
     PARAMETER["dy", 0.0],
     PARAMETER["dz", 0.0],
     PARAMETER["src_semi_major", 6378206.4],
     PARAMETER["src_semi_minor", 6356583.8],
     PARAMETER["tgt_semi_major", 6378206.4],
     PARAMETER["tgt_semi_minor", 6356583.8]],
   PARAM_MT["Molodenski",
     PARAMETER["dim", 2],
     PARAMETER["dx", 0.0],
     PARAMETER["dy", 0.0],
     PARAMETER["dz", 0.0],
     PARAMETER["src_semi_major", 6378206.4],
     PARAMETER["src_semi_minor", 6356583.8],
     PARAMETER["tgt_semi_major", 6378206.4],
     PARAMETER["tgt_semi_minor", 6356583.8]],
   PARAM_MT["Molodenski",
     PARAMETER["dim", 2],
     PARAMETER["dx", 0.0],
     PARAMETER["dy", 0.0],
     PARAMETER["dz", 0.0],
     PARAMETER["src_semi_major", 6378206.4],
     PARAMETER["src_semi_minor", 6356583.8],
     PARAMETER["tgt_semi_major", 6378206.4],
     PARAMETER["tgt_semi_minor", 6356583.8]],
   PARAM_MT["Transverse_Mercator",
     PARAMETER["semi_major", 6378206.4],
     PARAMETER["semi_minor", 6356583.8],
     PARAMETER["central_meridian", -105.0],
     PARAMETER["latitude_of_origin", 0.0],
     PARAMETER["scale_factor", 0.9996],
     PARAMETER["false_easting", 500000.0],
     PARAMETER["false_northing", 0.0]]]
{code}

The resulting transform chain has more element than expected.

-- 
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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to