Backport ProjectionHandler intersection outside valid area bug to 2.5.x
-----------------------------------------------------------------------

                 Key: GEOT-2990
                 URL: http://jira.codehaus.org/browse/GEOT-2990
             Project: GeoTools
          Issue Type: Bug
          Components: core render
    Affects Versions: 2.5.8, 2.5.7, 2.5.6, 2.5.5, 2.5.4, 2.5.3, 2.5.2, 2.5.1, 
2.5.0, 2.5-RC0, 2.5-M3, 2.5-M2, 2.5-M1, 2.5-M0
            Reporter: Alessio Fabiani
            Assignee: Andrea Aime


On the ProjectionHandler preProcess method if the intersection is empty the 
geometry is completely outside of the valid area we should skip it.

Basically we should add the follwing check to the method

...
ReferencedEnvelope envIntWgs84 = new 
ReferencedEnvelope(validArea.intersection(geWGS84), WGS84);
        
// if the intersection is empty the geometry is completely outside of the valid 
area, skip it
if(envIntWgs84.isEmpty())
  return null;
             
ReferencedEnvelope envInt = envIntWgs84.transform(geomCRS, true);
...


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

        

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

Reply via email to