[GRASS-dev] Re: [GRASS GIS] #1525: r.mask cannot use float maps

GRASS GIS trac at osgeo.org
Sat Dec 31 05:28:11 EST 2011


#1525: r.mask cannot use float maps
----------------------+-----------------------------------------------------
 Reporter:  pertusus  |       Owner:  grass-dev@…              
     Type:  defect    |      Status:  new                      
 Priority:  minor     |   Milestone:  7.0.0                    
Component:  Raster    |     Version:  svn-trunk                
 Keywords:            |    Platform:  Linux                    
      Cpu:  x86-64    |  
----------------------+-----------------------------------------------------

Comment(by pertusus):

 Replying to [comment:6 pertusus]:
 > It does not solve my issue.  I have printed the options, and indeed
 maskcats is not null, but *:
 >
 > {{{
 > if __name__ == "__main__":
 >     options, flags = grass.parser()
 >     print options
 > }}}

 Correctly formatted:

 {{{
 r.mask input=seed
 {'input': 'seed', 'maskcats': '*'}
 ERREUR :Raster map seed must be integer for maskcats parameter
 }}}

 This is certainly because of the * below:

 {{{
 #%option
 #% key: maskcats
 #% type: string
 #% description: Category values to use for mask (format: 1 2 3 thru 7 *)
 #% answer: *
 #% guisection: Create
 }}}

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



More information about the grass-dev mailing list