[postgis-devel] [PostGIS] #1648: ST_AsRaster unexpected result

PostGIS trac at osgeo.org
Mon Mar 5 11:26:07 PST 2012


#1648: ST_AsRaster unexpected result
----------------------+-----------------------------------------------------
 Reporter:  jomarlla  |       Owner:  pramsey      
     Type:  defect    |      Status:  new          
 Priority:  medium    |   Milestone:  PostGIS 2.0.0
Component:  postgis   |     Version:  trunk        
 Keywords:            |  
----------------------+-----------------------------------------------------
 Hi,

 create table rast2 as
   select ((pol).geom)::geometry (polygon, 0) as geom,
           (pol).val::integer as value
 from (select st_pixelaspolygons (rast) as pol from
  (select st_asraster ('POLYGON ((11 11, 21 11, 26 21, 16 21, 11
 11))'::geometry,
                        1.5::double precision, 2::double precision, 11, 11,
 '8BUI', 100, -1, 0, 0, true
           ) as rast
  ) as tabla) as tabla1;

 Im getting a cell which is not burned.

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