[postgis-devel] [PostGIS] #1373: Can't apply Scale Y constraint -- raster2pgsql

PostGIS trac at osgeo.org
Tue Dec 13 14:11:13 PST 2011


#1373: Can't apply Scale Y constraint -- raster2pgsql
----------------------------+-----------------------------------------------
 Reporter:  robe            |       Owner:  pracine      
     Type:  defect          |      Status:  new          
 Priority:  medium          |   Milestone:  PostGIS 2.0.0
Component:  postgis raster  |     Version:  trunk        
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by robe):

 Hmm it gives me ERROR:  check constraint "enforce_scaley_rast" is violated
 by some row

 I checked my query in psql instead of pgAdmin -- I didn't notice there
 were extra digits.

 So the scaley reads:


 {{{
  -0.300000000000023
 }}}


 I tried using that but also gives same error. Why distinct would return
 just 1 row and constraint would have issue is really puzzling.  I tried
 removing the ::double precision to see if maybe it was some floating
 coversion thing, but gives the same error.

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