[postgis-tickets] [PostGIS] #2143: [raster] Width and Height column of raster_columns view may need changing
    PostGIS 
    trac at osgeo.org
       
    Mon Dec 10 16:53:06 PST 2012
    
    
  
#2143: [raster] Width and Height column of raster_columns view may need changing
-------------------------+--------------------------------------------------
 Reporter:  dustymugs    |       Owner:  dustymugs    
     Type:  enhancement  |      Status:  new          
 Priority:  medium       |   Milestone:  PostGIS 2.1.0
Component:  raster       |     Version:  trunk        
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment(by dustymugs):
 After more thinking, the width and height constraints should be kept
 simple.  Using something like the example provided is no longer just a
 width constraint but rather a two part constraint, a width AND whether or
 not the tile is part of a coverage.
 {{{
 ALTER TABLE schemaname.tablename ADD CONSTRAINT enforce_width_tablename
 CHECK (st_width(rast) = width AND (st_upperleft(x) !=
 st_rastertoworldcoordx(rasterizedextent, st_width(rasterrisedextent) - 1,
 1)))
 }}}
 Ensuring that a tile is part of a coverage should be a separate
 constraint.
-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2143#comment:6>
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-tickets
mailing list