CRS equals comparion used by WorldImageReader isn't working
-----------------------------------------------------------

                 Key: GEOT-1553
                 URL: http://jira.codehaus.org/browse/GEOT-1553
             Project: GeoTools
          Issue Type: Bug
          Components: core referencing, gc coveragetools
    Affects Versions: 2.3.1
            Reporter: Judd Taylor
            Assignee: Martin Desruisseaux


When you set the MapContext to a specific CRS (a projected orthographic CRS in 
my case), and then try to read a georeferenced image in with the same CRS 
(using WorldImageReader), then it forces a reprojection, even though the source 
and destination CRS's are the same. 

This breaks for orthographic CRS since the orthographic reprojection isn't work 
anyways... (it fails if just one pixel is not projectable).

The work around I have to use is to first read the world image in, then grab 
it's CRS and use it as the MapContext's CRS before adding it as a layer. This 
ensures the mem address of the CRS is teh same, and then it will pass the 
equals test. However, this doesn't work when trying to use uDig, which doesn't 
do this work around...

-Judd

-- 
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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to