ArcGridReader can't read ArcGrid ASCII file without file extension
------------------------------------------------------------------

                 Key: GEOT-1792
                 URL: http://jira.codehaus.org/browse/GEOT-1792
             Project: GeoTools
          Issue Type: Bug
          Components: gc arcgrid
    Affects Versions: 2.4.2
         Environment: Windows XP
            Reporter: Jong Lee
            Assignee: Simone Giannecchini
            Priority: Minor


ArcGridReader can't read ArcGrid ASCII file without file extension (for 
example, "raster").  ArcGridReader should be able to handle the file without 
extension.   It is caused at line 691, ArcGridReader.java

   final int index = sourceAsString.lastIndexOf(".");

The IF statement is needed to handle the file without extension. For example:

int index = sourceAsString.lastIndexOf(".");
if (index == -1 ) index = sourceAsString.length();



-- 
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 the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to