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

PostGIS trac at osgeo.org
Tue Feb 14 13:33:54 PST 2012


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

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


Comment:

 Now for the same geometry, if the raster I want to align to is:

 {{{
 SELECT ST_Asbinary((gv).geom) geom, (gv).val
 FROM (SELECT ST_PixelAsPolygons(ST_MakeEmptyRaster(4, 4, 0, 0, 1, -1, 0.2,
 0.2, 0)) gv) foo
 }}}

 then:

 {{{
 SELECT ST_Asbinary((gv).geom) geom, (gv).val
 FROM (SELECT ST_PixelAsPolygons(
                ST_AsRaster(
                            ST_Buffer(ST_SetSRID(ST_MakePoint(2, 1), 0),
 1.3),
                            ST_MakeEmptyRaster(4, 4, 0, 0, 1, -1, 0.2, 0.2,
 0)
                           )
              ) gv
      ) foo
 }}}

 is also wrongly aligned... sorry...

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