Andrea Aime a écrit :
> Now, that longitude is in fact way out of range, but most WMS
> client do not have a knowledge of what the proper bounds are
> for a projection. It seems to me that it would be better to turn
> those exceptions into assertions, that is, make them trigger only
> someone really asked for detailed sanity checks.

Yes I already though about relaxing the coordinate checks in projections and I 
fully agree that we need a way to disable those checks. I just don't know yet 
how we should do that. I don't think that assertions would be the best way 
since 
"assert" statements are usually for catching logical errors that are internal 
to 
the implementation. In this case, the issue is rather in the way we use the 
projection.

So a Hint to be given to the factory (we already have a lot of hints...)? Or 
replace exceptions by warnings? I'm more tempted by the later, but then at 
which 
frequency to log? For every point out of bounds would be too much. Only the 
first time may be not enough...

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to