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