File: geovalues.h

package info (click to toggle)
libgeotiff 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,300 kB
  • sloc: ansic: 8,080; sh: 3,977; makefile: 166
file content (115 lines) | stat: -rw-r--r-- 2,781 bytes parent folder | download | duplicates (8)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/**********************************************************************
 *
 *  geovalues.h - Public registry for valid GEOTIFF  key-values.
 *
 *   Written By: Niles D. Ritter
 *
 *  copyright (c) 1995   Niles D. Ritter
 *
 *  Permission granted to use this software, so long as this copyright
 *  notice accompanies any products derived therefrom.
 *
 **********************************************************************/

#ifndef LIBGEOTIFF_GEOVALUES_H_
#define LIBGEOTIFF_GEOVALUES_H_

/* If code values are added or modified, the "GvCurrentMinorRev"
 * number should be incremented here. If new Keys are added, then the
 * GvCurrentRevision number should be incremented instead, and the
 * GvCurrentMinorRev should be reset to zero (see "geokeys.h").
 *
 * In addition, any changes here should be reflected in "geo_names.c"
 *
 */

#define GvCurrentMinorRev  0  /* First Major Rev EPSG Code Release  */


/*
 * Universal key values -- defined for consistency
 */
#define KvUndefined         0
#define KvUserDefined   32767

#ifdef ValuePair
#  undef ValuePair
#endif
#define ValuePair(name,value)    name = value,

/*
 * The section numbers refer to the GeoTIFF Specification section
 * in which the code values are documented.
 */

/************************************************************
 *         6.3.1 GeoTIFF General Codes
 ************************************************************/

/* 6.3.1.1 Model Type Codes */
typedef enum {
	ModelTypeProjected  = 1,  /* Projection Coordinate System */
	ModelTypeGeographic = 2,  /* Geographic latitude-longitude System */
	ModelTypeGeocentric = 3,   /* Geocentric (X,Y,Z) Coordinate System */
	ModelProjected  = ModelTypeProjected,   /* alias */
	ModelGeographic = ModelTypeGeographic,  /* alias */
	ModelGeocentric = ModelTypeGeocentric   /* alias */
} modeltype_t;

/* 6.3.1.2 Raster Type Codes */
typedef enum {
	RasterPixelIsArea   = 1,  /* Standard pixel-fills-grid-cell */
	RasterPixelIsPoint  = 2   /* Pixel-at-grid-vertex */
} rastertype_t;

typedef enum {
#  include "epsg_gcs.inc"
  geographic_end
} geographic_t;

typedef enum {
#  include "epsg_datum.inc"
   geodeticdatum_end
} geodeticdatum_t;

typedef enum {
#  include "epsg_units.inc"
   Unit_End
} geounits_t;

typedef enum {
#  include "epsg_ellipse.inc"
    ellipsoid_end
} ellipsoid_t;

typedef enum {
#  include "epsg_pm.inc"
   primemeridian_end
} primemeridian_t;

typedef enum {
#  include "epsg_pcs.inc"
   pcstype_end
} pcstype_t;

typedef enum {
#  include "epsg_proj.inc"
   projection_end
} projection_t;

typedef enum {
#  include "geo_ctrans.inc"
   coordtrans_end
} coordtrans_t;

typedef enum {
#  include "epsg_vertcs.inc"
   vertcs_end
} vertcstype_t;


typedef enum {
	VDatumBase = 1
} vdatum_t;

#endif /* LIBGEOTIFF_GEOVALUES_H_ */