[GRASS-dev] [GRASS GIS] #959: r.surf.contour. Resulting range of values has an incorrect 0 minimum.

GRASS GIS trac at osgeo.org
Mon Feb 22 06:08:45 EST 2010


#959: r.surf.contour. Resulting range of values has an incorrect 0 minimum.
-------------------------+--------------------------------------------------
 Reporter:  clerici      |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.0                    
Component:  Raster       |     Version:  unspecified              
 Keywords:               |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 I have a vector with contour lines from min=300 and max=380 and I want to
 construct a DEM for a (nearly) rectangular area defined in the raster
 maskmap(fig.1).[[BR]]
 v.to rast in=countours ou=contours use=cat[[BR]]
 r.mask in=maskmap[[BR]]
 r.surf.contour in=contours ou=dem[[BR]]
 with: r.info dem, the output range of data is min=0 and max=370, but there
 isn't any value lesser than 310 in the map, at least inside the masked
 area, so it seems that also the values outside the mask are considered in
 defining the values' range. Unfortunately the range 0-370 affects the
 color table (fig.2)[[BR]]
 With:[[BR]]
 r.mapcalc demcalc=dem[[BR]]
 r.info demcalc[[BR]]
 the correct range min=310 and max=370 is reported and a more adequate
 color table is adopted (fig.3).[[BR]]

 This seems a very old feature as I had the same results with GRASS6.5,
 6.4, 6.3 and 6.2.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/959>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list