coverageName is truncated when gdal plugin imports datasets having filenames 
containing several dots.
-----------------------------------------------------------------------------------------------------

                 Key: GEOT-2417
                 URL: http://jira.codehaus.org/browse/GEOT-2417
             Project: GeoTools
          Issue Type: Bug
          Components: gc imageio ext gdal
    Affects Versions: 2.5.4
            Reporter: Daniele Romagnoli
            Assignee: Daniele Romagnoli
            Priority: Minor
             Fix For: 2.5.5


When setting an input file called "abc.123.def.jp2" to the imageio-ext gdal 
reader, the coverageName set is simply abc.

It's a trivial fix.
Just change:

 final int dotIndex = coverageName.indexOf(".");

to: 

 final int dotIndex = coverageName.lastIndexOf(".");

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

        

------------------------------------------------------------------------------
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to