[postgis-devel] [PostGIS] #731: Raster is broken -- all functions involving raster/geometry

PostGIS trac at osgeo.org
Thu Dec 23 10:53:33 PST 2010


#731: Raster is broken -- all functions involving raster/geometry
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  blocker         |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------
 This is again with gserialized enabled.  As I recall all my raster tests
 were working before this.  I'm not sure if this is related to the other
 issue I ticketed already.

 All raster/geometry functions now seem to throw an
 -- unknown geometry type: 256 - unknown error


 {{{
 SELECT ST_World2RasterCoordY(rast1.rast,
 ST_Centroid(rast1.rast::geometry)), ST_AsEWKT(rast1.rast::geometry) As
 ref1_geom,
             ST_AsEWKT(foo2.the_geom) As ref2_geom

         FROM (
                  (SELECT ST_SetSRID(
                         ST_SetValue(
                                 ST_AddBand(ST_MakeEmptyRaster( 100, 100,
 (i-1)*100, (i-1)*100, 0.0005, -0.0005, 0*i, 0*i), '64BF'), i,
 (i+1),42949.12345),4326) As rast
                                 FROM generate_series(1,10) As i)
                  ) As rast1 CROSS JOIN ((SELECT
 ST_MakeLine(ST_SetSRID(ST_Point(i,j),4326),ST_SetSRID(ST_Point(j,i),4326))
 As the_geom
                 FROM (SELECT a*1.11111111 FROM generate_series(-10,50,10)
 As a) As i(i)
                         CROSS JOIN generate_series(40,70, 15) As j
                         WHERE NOT(i = j)
                         ORDER BY i, i*j)) As foo2
                                         LIMIT 2;
 }}}

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