GeoTiff plugin's  GeoTiffMetadata2CRSAdapter.getRasterToModel method doesn't 
correctly handle ModelTransformationTag + RasterTypeGeoKey
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: GEOT-2058
                 URL: http://jira.codehaus.org/browse/GEOT-2058
             Project: GeoTools
          Issue Type: Bug
          Components: gc geotiff
    Affects Versions: 2.5.0, 2.4.5
            Reporter: Daniele Romagnoli
            Assignee: Daniele Romagnoli
             Fix For: 2.4.6, 2.5.1


The GeoTiffMetadata2CRSAdapter.getRasterToModel method doesn't correctly handle 
the ModelTransformationTag.

In case the rasterType is RasterPixelIsArea (meaning PixelInCell#CELL_CORNER) 
the transformation should be converted to a PixelInCell#CELL_CENTER since the 
Javadoc says that the method creates the raster to model transformation 
repsecting ALWAYS the OGC PixelInCell#CELL_CENTER convention.

Moreover, in case the rasterType is RasterPixelIsPoint (meaning 
PixelInCell#CELL_CENTER) the additional half-pixel translate shouldn't be added.
Then, the half-pixel translation code should be moved from the "if (rasterType 
== GeoTiffConstants.RasterPixelIsPoint)" branch to the 
"if (rasterType == GeoTiffConstants.RasterPixelIsArea)" one.





-- 
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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to