ArcGrid ASCII format malfunction (AsciiGridsImageMetadata malfunction)
----------------------------------------------------------------------

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


ArcGrid Ascii file generated by ArcGridWriter uses wrong format as below:

XLLCENTER     xxx.xxx
YLLCENTER     xx.xxx

it should be:

XLLCORNER     xxx.xxx
YLLCORNER     xx.xxx

I found that it occurs becuase of AsciiGridsImageMetadata class in 
imageio-ext-arcgrid.

At line 357-359, in ArcGridWriter.java, it creates AsciiGridsImageMetadata 
object by using (isCorner = true) parameter.  It should create:

XLLCORNER     xxx.xxx
YLLCORNER     xx.xxx

but it uses XLLCENTER & YLLCENTER instead.  I tested with (isCorner = false), 
it creates XLLCORNER and XLLCORNER.  
So, AsciiGridsImageMetadata needs to be fixed for this behavior.



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