[GRASS-dev] [GRASS GIS] #2041: wxgui: error attempting to display imported raster map that was imported as three bands

GRASS GIS trac at osgeo.org
Tue Feb 25 00:36:12 PST 2014


#2041: wxgui: error attempting to display imported raster map that was imported as
three bands
-----------------------------------+----------------------------------------
 Reporter:  mlennert               |       Owner:  grass-dev@…              
     Type:  defect                 |      Status:  new                      
 Priority:  normal                 |   Milestone:  7.0.0                    
Component:  wxGUI                  |     Version:  svn-trunk                
 Keywords:  raster import display  |    Platform:  Unspecified              
      Cpu:  Unspecified            |  
-----------------------------------+----------------------------------------

Comment(by mlennert):

 Replying to [comment:1 wenzeslaus]:
 > As a temporary solution, GUI currently contains a text that says that
 ''Add layers...'' may not work with multiple bands.

 I guess to get a "real" solution, the dialog would have to run gdalinfo
 first to check whether there are multiple bands in the file ? Either using
 the python gdal api (RasterCount) or using some basic grep:


 {{{
 gdalinfo MyRaster.File | grep Band | wc -l
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2041#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list