[postgis-devel] [PostGIS] #2126: [raster] Convex hull of an empty raster

PostGIS trac at osgeo.org
Sun Dec 2 19:50:52 PST 2012


#2126: [raster] Convex hull of an empty raster
-----------------------+----------------------------------------------------
 Reporter:  dustymugs  |       Owner:  dustymugs    
     Type:  defect     |      Status:  new          
 Priority:  medium     |   Milestone:  PostGIS 2.0.2
Component:  raster     |     Version:  2.0.x        
 Keywords:             |  
-----------------------+----------------------------------------------------
 What is the convex hull of an empty raster (raster = NULL or width/height
 = zero)?

 For a NULL raster...

 {{{
 SELECT ST_ConvexHull(NULL::raster)

  st_convexhull
 ---------------

 (1 row)
 }}}

 For a raster with width or height set to zero...

 {{{
 SELECT ST_ConvexHull(ST_MakeEmptyRaster(1, 0, 0, 0, 1, -1, 0, 0, 0))

 ERROR:  RASTER_convex_hull: Could not get raster's convex hull
 }}}

 Instead of an error, shouldn't the answer be NULL?

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