[EMAIL PROTECTED] a écrit :
> I'm wondering, why doesn't CRS use BufferedCoordinateOperationFactory
> and the other Bufferedxxx class? This would make it a central point
> were all transformation needs can be solved with good performance
> and optimal sharing.
CRS does uses BufferedXXX class, indirectly. The factories returned by
FactoryFinder are buffered (buffering was less extensive in 2.2). We can see
that the following code:
System.out.println(FactoryFinder.getCoordinateOperationFactory(null).getClass());
prints "org...BufferedCoordinateOperationFactory".
However, even if factories are more extensively buffered since 2.3, the factory
lookup still have a cost. So if a CoordinateOperationFactory is going to be
used
extensively, it is wise to store a reference in the class that use it. It
should
not change anything on a buffering point of view, but it save the factory
lookup
(for a given set of hints) cost.
Martin
-------------------------------------------------------------------------
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