[GRASS-dev] Re: [GRASS GIS] #128: NVIZ fails to load vector points without other map

GRASS GIS trac at osgeo.org
Fri Apr 18 20:19:11 EDT 2008


#128: NVIZ fails to load vector points without other map
----------------------+-----------------------------------------------------
  Reporter:  neteler  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect   |      Status:  new                      
  Priority:  major    |   Milestone:  6.4.0                    
 Component:  default  |     Version:  svn-trunk                
Resolution:           |    Keywords:  nviz                     
----------------------+-----------------------------------------------------
Comment (by hamish):

 {{{
 g.region -d
 nviz points=archsites
 # change z-exag from -0.0 to 1.0
 divide by zero
     while executing
 "expr $val/floor($val/$res)"
     (procedure "Nv_floatscaleCallback" line 49)
 }}}

 AFAICT this is because the value $res is set from is used uninitiated.

 "$res" there is -0.0, set a few lines above with:
   set res [lindex [$S.scale configure -resolution] 4]

 if there is a raster (or vol?) surface given from the command line it
 calcs $res ok. If not it doesn't. Even if you add in a new raster surface
 after starting with "nviz points=" it doesn't set $res and then gets
 quickly stuck in some infinite loop.

 So how does $res get set for raster maps? If there is no raster map can a
 starting value be derived from the current region settings?


 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/128#comment:10>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list