[postgis-devel] [PostGIS] #1554: [raster] ST_SetRotation does not preserve the angle between basis vectors

PostGIS trac at osgeo.org
Wed Feb 8 09:20:08 PST 2012


#1554: [raster] ST_SetRotation does not preserve the angle between basis vectors
--------------------+-------------------------------------------------------
 Reporter:  dzwarg  |       Owner:  pracine              
     Type:  defect  |      Status:  new                  
 Priority:  high    |   Milestone:  PostGIS Raster Future
Component:  raster  |     Version:  trunk                
 Keywords:          |  
--------------------+-------------------------------------------------------
 !SetRotation does not preserve the angle between the basis vectors. (The
 angle between '''i,,b,,''' and '''j,,b,,''' is different after
 St_SetRotation is called. Both axes should be rotated the same.)

 I remedied this in my working git repo with an implementation of
 DevWikiRealParameters and DevWikiAffineParameters, upon which st_rotation
 and st_setrotation now depend (in that repo). We can either pluck out the
 bits and pieces relevant to this issue or wait for the gen2 iterator...or
 you can reimplement the algorithms from scratch. Plucking out bits and
 pieces may be a bit sticky, since the new code is tested with CUnit tests,
 and the postgis repo lacks this infrastructure.

 The commit which fixes this in bnordgren's repo is:
 https://github.com/bnordgren/postgis/commit/06f9e65537e385f2adcb1b9ae166f50f5c7ad986

 To browse source:  https://github.com/bnordgren/postgis/tree/ri-gen2-svn

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1554>
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