File: conv.h

package info (click to toggle)
grass 6.0.0-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 38,764 kB
  • ctags: 31,167
  • sloc: ansic: 320,650; tcl: 25,669; cpp: 10,098; sh: 9,695; makefile: 4,714; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (38 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Head */
#define DIG4_ORGAN_LEN       30
#define DIG4_DATE_LEN        20
#define DIG4_YOUR_NAME_LEN   20
#define DIG4_MAP_NAME_LEN    41
#define DIG4_SOURCE_DATE_LEN 11
#define DIG4_LINE_3_LEN      53	/* see below */

#define VERS_4_DATA_SIZE 20

#define OLD_LINE_3_SIZE 73
#define NEW_LINE_3_SIZE 53

/* old file format element type codes */
#define FILE_LINE               0
#define FILE_AREA               1
#define FILE_DOT                2
 
#define FILE_DEAD_LINE          4
#define FILE_DEAD_AREA          5
#define FILE_DEAD_DOT           6

struct Line
  {
      int type;
      int n_points;
      int cat;   /* attached category */
      double *x, *y;
  };

struct Categ
  {
      double x;  /* x location point */
      double y;  /* y location point */
      int cat;   /* Category Number */
      int type;  /* type (new vector5) */
  };