cat.c library routine

Ronald E. Thomas ront at niwot.CFNR.ColoState.EDU
Fri Oct 16 14:32:10 EDT 1992


I am using the SCS's v.report program, and it needs a complete category file;
meaning if your highest category is 146, you need to have 146 lines in the 
dig_cats file, even if you have no category label for the attribute number.

Example, this dig_cats file;

# 421 categories
Created by v.db.rim

0.00 0.00 0.00 0.00
421:Lake or Pond
  

has to be written as; 

# 421 categories
Created by v.db.rim

0.00 0.00 0.00 0.00
0:
1:
2:
3:
4:
5:
6:
   etc
  etc
   etc
419:
420:
421:Lake or Pond

Is there a way to modify the fprint  function of src/libes/gis/cat.c so that
it will print out a dig_cats file in this longer format?  Our is there a 
simpler UNIX routine to do the same that I'm missing?

Thanx for any help!

^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^
   Ronald Thomas                         ^  ront at meeker.cfnr.colostate.edu
    Natural Resource Spec. (GIS)         ^  
     Resource Management Division        ^   Phone: 303-586-3565  x285
      Rocky Mountain National Park       ^          700-323-7285  (FTS)
       Estes Park, CO  80517             ^ 
^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^



More information about the grass-user mailing list