CRS utility class is where helper methods are defined; your suggestion
of  CRS.transform("EPSG:XXXX", "EPSG:YYYY", thing) is good - but it
will be hard since the JTS utility class (and all our methods for
hacking JTS objects) are not around yet.

Still it may be good motivation to move them. This would be a call for
Andrea to make - could we move the JTS utility class further up the
food chain into the referencing jar?

Jody

On Tue, Feb 23, 2010 at 10:12 AM, Michael Bedward
<[email protected]> wrote:
> On 23 February 2010 03:29, Andrea Aime <[email protected]> wrote:
>> I don't see how it can get any easier. (replace decode with parseWKT
>> if you need to provide a custom made CRS)
>>
>
> Often I suspect all that is needed is a little consistency and syntactic 
> candy.
>
> Eg. consistency...  With ReferencedEnvelope you can do:
>    ReferencedEnvelope transformedEnv = sourceEnv.transform( targetCRS, true );
>
> But there's no equivalent method with DirectPosition2D :-)
>
> E.g. candy... Instead of forcing a new user to do:
>  CoordinateReferenceSystem crs1 = CRS.decode("EPSG:XXXX");
>  CoordinateReferenceSystem crs2 = CRS.decode("EPSG:YYYY");
>  MathTransform mt = CRS.findMathTransform(crs1, crs2, true);
>  m.transform(...)
>
> There could be a set of methods like:
>  CRS.transform("EPSG:XXXX", "EPSG:YYYY", thing)
>
> Why even force them to type EPSG all the time in such methods ?
>
> You understand I'm just thinking out loud here.
>
> Michael
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to