[postgis-devel] [PostGIS] #2024: raster: ST_Union is buggy

PostGIS trac at osgeo.org
Tue Oct 2 21:42:30 PDT 2012


#2024: raster: ST_Union is buggy
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  dustymugs    
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.1.0
Component:  raster   |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by dustymugs):

 Oh.  Can you try...

 {{{
 SELECT ST_Union(rast,ARRAY[ROW(1, 'LAST'), ROW(2, 'LAST'), ROW(3,
 'LAST')]::unionarg[])
 FROM test_100_100
 WHERE ST_Intersects(rast,  ST_GeomFromText('LINESTRING(230486.436 886271,
 230486.437 887771)',26986) );
 }}}

 I noticed that the above is faster than using the ST_AddBand() array
 method.

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