Adrian Custer wrote:
> Hey Jody,
>
> On Thu, 2006-08-10 at 16:43 +0200, Jody Garnett wrote:
>   
>> Back to your code example - will this work and be consistent?
>> MathTransform transform = CRS.mathTransform(BC_ALBERS, WGS84 );
>>     
> Why no create/make/fetch/invoke/instantiate? That was at the heart of my
> initial request. 
>   
Trying to speak in complete code examples - so this will work out for 
you then.

MathTransform transform = CRS.findMathTransform(BC_ALBERS, WGS84 );
Polygon polyAfter = (Polygon) JTS.transform(poly, transform);

> you can also use the transform itself, 
>   transform.transform(...)
>   
I was not aware of this, is it a recent change? I think the JTS class 
provides some additional parameters that can be used to "bend" straight 
lines and so on as required.

Jody


-------------------------------------------------------------------------
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