[postgis-devel] [PostGIS] #1574: [raster] ST_AsRaster(geometry, rast) do not align raster properly

PostGIS trac at osgeo.org
Fri Feb 24 09:51:29 PST 2012


#1574: [raster] ST_AsRaster(geometry, rast) do not align raster properly
----------------------+-----------------------------------------------------
  Reporter:  pracine  |       Owner:  dustymugs    
      Type:  defect   |      Status:  closed       
  Priority:  medium   |   Milestone:  PostGIS 2.0.0
 Component:  raster   |     Version:  trunk        
Resolution:  fixed    |    Keywords:               
----------------------+-----------------------------------------------------
Changes (by dustymugs):

  * status:  reopened => closed
  * resolution:  => fixed


Comment:

 The skewed example works.  Refactored code

 {{{
 WITH foo AS (
         SELECT ST_MakeEmptyRaster(4, 4, 0, 0, 1, -1, 0.2, 0.2, 0) AS rast
 )
 SELECT
         ST_SameAlignment(
                 ST_AsRaster(
                         ST_Buffer(ST_SetSRID(ST_MakePoint(2, 1), 0), 1.3),
                         rast
                 ),
                 rast
         )
 FROM foo
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1574#comment:9>
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