[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 05:07:58 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 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

 }}}

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



More information about the grass-dev mailing list