Hints prevent creation of lenient OperationAuthorityFactory
-----------------------------------------------------------

                 Key: GEOT-1618
                 URL: http://jira.codehaus.org/browse/GEOT-1618
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing
    Affects Versions: 2.5-M0
            Reporter: Jody Garnett
            Assignee: Martin Desruisseaux


The following senario does not work for epsg-wkt (from CRSTest.java in 
epsg-wkt):
{code}
        Map map = new HashMap();
        map.put( Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, true );
        map.put( Hints.FORCE_STANDARD_AXIS_DIRECTIONS, true );
        map.put( Hints.FORCE_STANDARD_AXIS_UNITS, true );

        Hints global = new Hints(map);
        GeoTools.init( global );

       // ReferencedEnvelope[-0.24291497975705742 : 0.24291497975711265, 
-0.5056179775280899 : -0.0]
        CoordinateReferenceSystem EPSG4326 = CRS.decode("EPSG:4326");
        ReferencedEnvelope pixelBounds = new ReferencedEnvelope( 
-0.24291497975705742, 0.24291497975711265, -0.5056179775280899, 0.0, EPSG4326 );
        CoordinateReferenceSystem WGS84 = DefaultGeographicCRS.WGS84;
        
        ReferencedEnvelope latLong = pixelBounds.transform( WGS84, true );  
        assertNotNull( latLong );
{code}

The various warappers applied to make good on *any* of the above hints will 
trip up when they look for a CRSAuthorityFactory and expect it to be an 
OperationAuthorityFactory as well. Since this is a strange place to get an 
error (second time through FactoryCreator via recusion of a backing store 
lookup) the system never recovers.

One top level fix - if lenient cannot be created; try creating a non lenient 
before giving up.
One low level fix - set up wrappers against those untangled implementations I 
created; single wrapper for each purpose and so forth.

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

        

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to