Le vendredi 05 octobre 2007 à 18:44 +0200, Jacopo Boari a écrit :
> I'm now using your suggestion to make the transformation, but this operatio
> in too slow.
> This is my source code:
>
> CoordinateOperationFactory coFactory =
> FactoryFinder.getCoordinateOperationFactory(null);
> CoordinateOperation co = coFactory.createOperation(CRS.decode("EPSG:4326"),
> CRS.decode("EPSG:3003"));
> MathTransform trans = co.getMathTransform();
Which part is slow? The above lines get the MathTransform, but don't use
it for applying the transformation.
The MathTransform should be obtained only once and used for every points
to transform between a given pair of source CRS and target CRS. Getting
the MathTransform for every point would be slow.
> Whatching the debug console I've seen two error messages:
>
> 1 - Bursa Wolf Parameter Required
> 2 -
>
> AVVERTENZA: Can't load a service for category DataSource.
> java.lang.NoClassDefFoundError:
> org/geotools/referencing/factory/epsg/DataSource
Which JAR do you have in your classpath? Try to put "epsg-hsql.jar" and
to remove any other "epsg-*.jar" file from the classpath.
Martin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users