[postgis-devel] [PostGIS] #582: [wktraster] Correct pixel size calculations

PostGIS trac at osgeo.org
Fri Sep 10 05:50:38 PDT 2010


#582: [wktraster] Correct pixel size calculations
-----------------------+----------------------------------------------------
 Reporter:  dzwarg     |       Owner:  dzwarg         
     Type:  defect     |      Status:  new            
 Priority:  medium     |   Milestone:  WKTRaster 0.1.6
Component:  wktraster  |     Version:  1.5.X          
 Keywords:             |  
-----------------------+----------------------------------------------------
 The pixel width returned is the A component of the georeference, and the
 pixel height returned is the E component of the georeference. When looking
 closer at rotation, it became apparent that these values aren't truly the
 pixel width & height, but the X component of width, and the Y component of
 height, respectively.  The B and D components of the georeference are the
 X component of the height, and the Y component of the width, respectively.

 The true pixel with is actually sqrt(A^2 + D^2), and the true pixel height
 is actually sqrt(B^2 + E^2).

 Do we want another accessor that returns the component of the
 georeference, in addition to rt_raster_get_pixel_width, which returns the
 true pixel width?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/582>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list