Exception when cropping to small region
---------------------------------------

                 Key: GEOT-1814
                 URL: http://jira.codehaus.org/browse/GEOT-1814
             Project: GeoTools
          Issue Type: Bug
          Components: core coverage
    Affects Versions: 2.4.2
         Environment: Wndows XP and JRE 1.6, although the problem seems generic
            Reporter: Nick Newman
            Assignee: Martin Desruisseaux
            Priority: Minor


On line 311 of release 2.4.2 of  
org.geotools.coverage.processing.operation.CroppedCoverageD.java (version 
30268) the following code is found:

final GeneralGridRange newRange = new GeneralGridRange(new 
GeneralEnvelope(finalGridRange));

If the finalGridRange is small the newRange can become empty because of the 
rounding to integers that occurs in the GeneralGridRange constructor.  This 
results in the error "The rectangular crop area must not be empty" in the JAI 
calls a little later.

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