FORCE_AXIS_ORDER_HONORING does not work if longitude first is provided as an 
hint instead as a system variable
--------------------------------------------------------------------------------------------------------------

                 Key: GEOT-1704
                 URL: http://jira.codehaus.org/browse/GEOT-1704
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.4.0
            Reporter: Andrea Aime
            Assignee: Martin Desruisseaux
             Fix For: 2.4.1, 2.5-M1


The following program:

{code}
import org.geotools.factory.Hints;
import org.geotools.referencing.CRS;

public class ForceAxisOrderHonoring {
    public static void main(String[] args) throws Exception {
        Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, 
Boolean.TRUE);
//        System.setProperty("org.geotools.referencing.forceXY", "true");
        Hints.putSystemDefault(Hints.FORCE_AXIS_ORDER_HONORING, "http, urn");
        System.out.println(CRS.decode("EPSG:4326"));
        
System.out.println(CRS.decode("http://www.opengis.net/gml/srs/epsg.xml#4326";));
        System.out.println(CRS.decode("urn:x-ogc:def:crs:EPSG:6.11.2:4326"));
    }
}
{code}

shows that Hints.FORCE_AXIS_ORDER_HONORING is ignored when the 
FORCE_LONGITUDE_FIRST_AXIS_ORDER=true is provided as an hint, and it's honored 
instead when the latter is provided as a system variable. In GeoServer I can 
keep the old system variable approach, yet it would be nicer on the web 
containers to avoid setting system variables within a web application

-- 
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to