MapProjection: relax coordinate checks/make them configurable
-------------------------------------------------------------

                 Key: GEOT-1745
                 URL: http://jira.codehaus.org/browse/GEOT-1745
             Project: GeoTools
          Issue Type: Improvement
          Components: core referencing
    Affects Versions: 2.4.2, 2.5-M1
            Reporter: Andrea Aime
            Assignee: Martin Desruisseaux
             Fix For: 2.4.2, 2.5-M1


As reported in this mail thread:
http://www.nabble.com/Relaxing-coordinate-checks-in-MapProjection--td16154359.html

it would be very useful to relax the current bound checks on MapProjection 
(line ...) as they are breaking rendering in at least two applications 
depending on GeoTools (GeoServer and uDig).
Implementation ideas:
* add a new hint to ask for transform leniency
* use the current "lenient transform" hint to act on bound checks as well

The latter is probably the easiest way, but has backwards compatibility issues. 
At the moment the CRS.findMathTransform(from, to , lenient) javadoc states:
{code}
param lenient [EMAIL PROTECTED] true} if the coordinate operations should be 
created
            even when there is no information available for a datum shift.
{code}
Most datastore and rendering code sets lenient to true in order to get a best 
effort behaviour, so the change proposed above would be consistent with the 
current intended usage, but not fully with the javadoc (thought it can be 
argued that it doesn't say anything about exception being thrown either, so the 
current behaviour is not specified in the javadocs either?).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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