Hey Rueben,

Thanks for your replies and for pointing me towards some appropriate
code. Thanks also to whomever wrote CTSTutorial.java. That's the kind of
code I like to read!

cheers,
adrian




For anyone reading this thread later: 

Beware the 2.1 tutorial!
> http://www.geotools.org/display/GEOTOOLS/Coordinate+Transformation
> +Services+for+Geotools+2.1
This is a dead end being based on the deprecated legacy methods. 

The two key methods were:

trans = org.geotools.referencing.CRS.transform(
                sourceCoordRefSys, targetCoordRefSys, true);
newGeom = org.geotools.jts.JTS.transform(oldGeom, trans);

The boolean lets the transform ignore the datum shift which turns out to
be critical if you don't have each datum perfectly defined. 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to