Andrea Aime ha scritto:
> Andrea Aime ha scritto:
>> Andrea Aime ha scritto:
>>> Hi,
>>> I'm trying to debug an infinite loop triggered when
>>> trying to find a math transform from EPSG:32632 to EPSG:4326,
>>> with first axis forced as longitude thru a system property.
>>
> 
> Quick way to reproduce the stack overflow:
> 
> public static void main(String[] args) throws Exception {
>         System.setProperty("org.geotools.referencing.forceXY", "true");
>         CoordinateReferenceSystem crs1 = CRS.decode("EPSG:32632");
>         CoordinateReferenceSystem crs2 = CRS.decode("EPSG:4326");
>         System.out.println(CRS.findMathTransform(crs1, crs2));
>     }

Oh well, I give up, the code has such an number of indirections and SPI
lookups that I can't follow it not even with a debugger. I only spotted
a few things:
* in 2.4 the BufferedCoordinateOperationFactory uses an 
AuthorityBackedFactory that in turns uses a LongitudeFirstFactory using 
a OrderAuthorityFactory which in the end uses the FactoryOnHSQL
* in 2.3 under the same conditions the
   BufferedCoordinateOperationFactory uses an AuthorityBackedFactory
   using a DefaultFactory using a FactoryUsingSql
* in 2.4 the coordinate operation gets created fromlat/lon crs and
   apparently a tentative to replace it with one that uses lon/lat
   instead fails and this triggers the loop (that is, the replacement
   still uses lat/lon...)

Cheers
Andrea


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to