Geotiff metadata encodes swaps count and offset when adding a new GeoKeyEntry
-----------------------------------------------------------------------------

                 Key: GEOT-2899
                 URL: http://jira.codehaus.org/browse/GEOT-2899
             Project: GeoTools
          Issue Type: Bug
          Components: core coverage, gc geotiff
    Affects Versions: 2.6.0, 2.5.8
            Reporter: Daniele Romagnoli
            Assignee: Daniele Romagnoli
             Fix For: 2.6.1, 2.7-M0


The GeoTiffMetadata Encoder addGeoKeyEntry method has the following arguments:
addGeoKeyEntry(int keyID, int tag, int count, int offset).

The GeoKeyEntry has the following constructor:
GeoKeyEntry(int keyID, int tagLoc, int count, int offset).

However, the addGeoKeyEntry calls the GeoKeyEntry constructor with the 
following arguments order:
geoTiffEntries.add(new Integer(keyID), new GeoKeyEntry(keyID, tag, offset, 
count)).

This results in a swapped offset <-> count settings.



-- 
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 Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to