[GRASS-dev] Building a map to test my module

Hamish hamish_b at yahoo.com
Mon Apr 21 17:37:32 EDT 2008


roberto caselli wrote:
> I need to test a part of my module and I'd like to know if it is
> possible to build a very little raster map starting with some data I'd
> send in input in that script (like elevations, areas, number of rows
> and cols and so on).


for an example using g.region + r.mapcalc, see the v.colors script in
grass-addons:
  http://trac.osgeo.org/grass/browser/grass-addons/vector/v.colors/
  # Populate a GRASSRGB column with a color map and data column
  # Helper script for thematic mapping tasks


look for:
# setup internal region
# create dummy raster map


Hamish



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



More information about the grass-dev mailing list