Flipped axis CRS do miss some information compared to the original ones
-----------------------------------------------------------------------

                 Key: GEOT-1578
                 URL: http://jira.codehaus.org/browse/GEOT-1578
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
            Reporter: Andrea Aime
            Assignee: Martin Desruisseaux
             Fix For: 2.4-RC1, 2.5-M1


A crs forced to lon/lat order will miss some information compared to the 
original one, in particular at least scope and valid area.
The following code snippet shows the difference:

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


public class MissingInfo {
    public static void main(String[] args) throws Exception {
        System.out.println("Lat/lon code:");
        final String code = "EPSG:2027";
        printInfo(CRS.decode(code));
        
        System.out.println("\n\n\nLon/Lat code:");
        printInfo(CRS.decode(code, true));
    }

    private static void printInfo(final CoordinateReferenceSystem crs) {
        System.out.println("Aliases: " + crs.getAlias());
        System.out.println("Identifiers: " + crs.getIdentifiers());
        System.out.println("Valid area: " + crs.getValidArea());
        System.out.println("Remarks: " + crs.getRemarks());
        System.out.println("Scope: " + crs.getScope());
    }
}
{code}

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