Make axis comparison lenient vs axis names
------------------------------------------

                 Key: GEOT-1135
                 URL: http://jira.codehaus.org/browse/GEOT-1135
             Project: GeoTools
          Issue Type: Improvement
          Components: core referencing
    Affects Versions: 2.3.0, 2.2.2
            Reporter: Andrea Aime
         Assigned To: Martin Desruisseaux
             Fix For: 2.2.3, 2.3.1, 2.4.M0


In order to provide CRS lookup in Geoserver we do need the 
DefaultCoordinateSystemAxis fix in both 2.2.x and 2.3.x:

private static List latitudeAliases = Arrays.asList(new String[] 
{"Lat", "Geodetic latitude", "Latitude"});
     private static List longitudeAliases = Arrays.asList(new String[] 
{"Lon", "Geodetic longitude", "Longitude"});
     public boolean nameMatches(String name) {
         String code = getName().getCode();
         if(latitudeAliases.contains(name) && 
latitudeAliases.contains(code))
             return true;
         if(longitudeAliases.contains(name) && 
longitudeAliases.contains(code))
             return true;
         return super.nameMatches(name);
     }

If you don't have anything against it, I can apply the patch myself

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

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to