[GRASS-dev] [GRASS GIS] #2343: GRASS 7: "inf" values break insert statements in v.rast.stats

GRASS GIS trac at osgeo.org
Tue Nov 25 07:06:11 PST 2014


#2343: GRASS 7: "inf" values break insert statements in v.rast.stats
--------------------------+-------------------------------------------------
 Reporter:  sbl           |       Owner:  grass-dev@…              
     Type:  defect        |      Status:  new                      
 Priority:  normal        |   Milestone:  7.0.0                    
Component:  Python        |     Version:  svn-releasebranch70      
 Keywords:  v.rast.stats  |    Platform:  All                      
      Cpu:  All           |  
--------------------------+-------------------------------------------------

Comment(by lucadelu):

 Replying to [comment:5 sbl]:
 > Replying to [comment:4 lucadelu]:
 > > Could you provide a dataset to test the patches?
 >
 > You can reproduce the issue with these commands:
 >
 > {{{
 > g.region -p n=1 s=0 e=2 w=0 res=1
 > r.mapcalc --o expression="rastermap1=1"
 > r.mapcalc --o expression="rastermap2=double(if(x()==0.5,-1,1))"
 > r.to.vect --o --v input=rastermap1 output=vectormap type=area
 > v.rast.stats -c --verbose map=vectormap raster=rastermap2
 column_prefix=value
 >
 > }}}

 In r62938 I should fixed the error.
 I change a little bit your patch to cover multiple way to catch Infinity
 value.

 If it is working I'll backport the changeset to GRASS70.

 I also applied your patch for GRASS64 version in r62944.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2343#comment:6>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list