On 20/03/2010, at 9:52 PM, Andrea Aime wrote: > Hi, > today I had a boring hour and implemented the Winkel Tripel > projection, which apparently has been chosen as the best > world-wide projection by the National Geographic some 12 > years ago.
I remember it - is that not like an atlas and things? They peel back the oceans in oder to make the land masses roughly right. > Adding the code was easy enough, but there is a catch: > the transform is not easily inverted. :-P > I believe the likeliness of someone using that direct > call is low, as CRS.findMathTransform returns a generic > MathTransform (which could be a concatenation of > MapProjection with something else). > > In any case, it's an API break. How to deal with that? > > Evil plan: > - on 2.6.x we throw an unsupported operation exception > that wraps the non invertible one > - on trunk we actually make the code throw the > NonInvertibleTransformException > Opinions? Your evil plan is really evil ... I usually throw a wrapping RuntimeException if ever forced into the same corner. Frankly you may wish to just throw the unsupported operation exception... Jody ------------------------------------------------------------------------------ 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-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
