[postgis-devel] [PostGIS] #2056: [raster] ST_SetValue() for point does NOT check SRID

PostGIS trac at osgeo.org
Thu Oct 18 13:42:02 PDT 2012


#2056: [raster] ST_SetValue() for point does NOT check SRID
-----------------------+----------------------------------------------------
 Reporter:  dustymugs  |       Owner:  dustymugs    
     Type:  defect     |      Status:  new          
 Priority:  blocker    |   Milestone:  PostGIS 2.0.2
Component:  postgis    |     Version:  2.0.x        
 Keywords:             |  
-----------------------+----------------------------------------------------

Comment(by dustymugs):

 {{{
 WITH foo AS (
         SELECT ST_AddBand(ST_MakeEmptyRaster(5, 5, -119, 51, 1, -1, 0, 0,
 4326), 1, '8BUI', 1, 0) AS rast
 ), bar AS (
         SELECT ST_Transform('SRID=4326;POINT(-118 50)'::geometry, 26911)
 AS geom
 )
 SELECT
         ST_SetValue(rast, 1, geom, 5)
 FROM foo
 CROSS JOIN bar;
 }}}

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