GeoTiffFormat.accepts() returns true for an arbitrary zip file
--------------------------------------------------------------

                 Key: GEOT-1406
                 URL: http://jira.codehaus.org/browse/GEOT-1406
             Project: GeoTools
          Issue Type: Bug
            Reporter: Edward Nash


When using GeoTiffFormat.accepts(Object) when the Object refers to an arbitrary 
zip archive (e.g. Object is an instance of File pointing to a .zip file), the 
method returns true.

A GeoTiffFormat instance may therefore be returned when using the 
GridFormatFinder.findFormat() in this case, which leads to an exception when 
the attempt is made to read the GridCoverage2D, as the zip archive is (of 
course) not a valid GeoTIFF file.

-- 
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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to