GridCoverageRenderer fails to display coverages whose envelope touches the 
poles when reprojection to 900913 is required
------------------------------------------------------------------------------------------------------------------------

                 Key: GEOT-1747
                 URL: http://jira.codehaus.org/browse/GEOT-1747
             Project: GeoTools
          Issue Type: Bug
          Components: core render
    Affects Versions: 2.5-M0, 2.4.1
            Reporter: Andrea Aime
            Assignee: Simone Giannecchini
             Fix For: 2.4.2, 2.5-M1


Situation:
* coverage whose envelope spans the whole globe (exactly, -180/180, -90/90) 
* coverage is in 4326
* reprojection is requested to 900913

The result is the following exception: 
{code}
20 mar 16:21:01 WARN [geotools.rendering] - Latitude 90°00.0'S is too close to 
a pole.
org.geotools.referencing.operation.projection.ProjectionException: Latitude 
90°00.0'S is too close to a pole.
        at 
org.geotools.referencing.operation.projection.Mercator$Spherical.transformNormalized(Mercator.java:212)
        at 
org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:784)
        at 
org.geotools.referencing.operation.projection.MapProjection.transform(MapProjection.java:825)
        at 
org.geotools.referencing.operation.transform.AbstractMathTransform.transform(AbstractMathTransform.java:217)
        at org.geotools.referencing.CRS.transform(CRS.java:983)
        at org.geotools.referencing.CRS.transform(CRS.java:929)
        at 
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.paint(GridCoverageRenderer.java:354)
        at 
org.geotools.renderer.lite.StreamingRenderer.renderRaster(StreamingRenderer.java:1850)
        at 
org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1709)
...
{code}

The issue is that the code is trying to reproject the whole native envelope to 
900913, but rendering over
google maps does not require that (the map is actually cut at 85° or something 
like that).

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