Hi Martin,
Thank you for your help. However, I cannot find anyway to pass the Hint to the factory like you said, nor can i find CRS class. I am using Geotools 2.1M2. Is your solution for 2.2 instead?
Thanks,
Trung
Martin Desruisseaux <[EMAIL PROTECTED]> wrote:
Martin Desruisseaux <[EMAIL PROTECTED]> wrote:
Trung Dinh a écrit :
> org.opengis.referencing.operation.OperationNotFoundException: Bursa wolf
> parameters required.
The source or target CRS probably doesn't contains a "TOWGS84[...]" info. In
such case, Geotools doesn't know how to perform datum change. You can instruct
Geotools to skip the datum change step, but in such case you will get a greater
error (maybe 10 meters, maybe one kilometers... Its all depends of the CRS
involved).
To instructs Geotools to ignore datum change, pass a new
Hints(Hints.LENIENT_DATUM_SHIFT, Boolean.TRUE) argument to
FactoryFinder.getCoordinateOperationFactory.
Alternatively, you can also use the CRS.findMathTransform(..., true) convenience
method.
See also:
http://www.mail-archive.com/geotools-gt2-users@lists.sourceforge.net/msg01404.html
Martin
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users