Debian Codegraph @

frmts/gtiff/libgeotiff/geovalues.h

raw
1 /**********************************************************************
2 *
3 * geovalues.h - Public registry for valid GEOTIFF key-values.
4 *
5 * Written By: Niles D. Ritter
6 *
7 * copyright (c) 1995 Niles D. Ritter
8 *
9 * Permission granted to use this software, so long as this copyright
10 * notice accompanies any products derived therefrom.
11 *
12 **********************************************************************/
13
14 #ifndef LIBGEOTIFF_GEOVALUES_H_
15 #define LIBGEOTIFF_GEOVALUES_H_
16
17 /* If code values are added or modified, the "GvCurrentMinorRev"
18 * number should be incremented here. If new Keys are added, then the
19 * GvCurrentRevision number should be incremented instead, and the
20 * GvCurrentMinorRev should be reset to zero (see "geokeys.h").
21 *
22 * In addition, any changes here should be reflected in "geo_names.c"
23 *
24 */
25
26 #define GvCurrentMinorRev 0 /* First Major Rev EPSG Code Release */
27
28
29 /*
30 * Universal key values -- defined for consistency
31 */
32 #define KvUndefined 0
33 #define KvUserDefined 32767
34
35 #ifdef ValuePair
36 # undef ValuePair
37 #endif
38 #define ValuePair(name,value) name = value,
39
40 /*
41 * The section numbers refer to the GeoTIFF Specification section
42 * in which the code values are documented.
43 */
44
45 /************************************************************
46 * 6.3.1 GeoTIFF General Codes
47 ************************************************************/
48
49 /* 6.3.1.1 Model Type Codes */
50 typedef enum {
51 ModelTypeProjected = 1, /* Projection Coordinate System */
52 ModelTypeGeographic = 2, /* Geographic latitude-longitude System */
53 ModelTypeGeocentric = 3, /* Geocentric (X,Y,Z) Coordinate System */
54 ModelProjected = ModelTypeProjected, /* alias */
55 ModelGeographic = ModelTypeGeographic, /* alias */
56 ModelGeocentric = ModelTypeGeocentric /* alias */
57 } modeltype_t;
58
59 /* 6.3.1.2 Raster Type Codes */
60 typedef enum {
61 RasterPixelIsArea = 1, /* Standard pixel-fills-grid-cell */
62 RasterPixelIsPoint = 2 /* Pixel-at-grid-vertex */
63 } rastertype_t;
64
65 typedef enum {
66 # include "epsg_gcs.inc"
67 geographic_end
68 } geographic_t;
69
70 typedef enum {
71 # include "epsg_datum.inc"
72 geodeticdatum_end
73 } geodeticdatum_t;
74
75 typedef enum {
76 # include "epsg_units.inc"
77 Unit_End
78 } geounits_t;
79
80 typedef enum {
81 # include "epsg_ellipse.inc"
82 ellipsoid_end
83 } ellipsoid_t;
84
85 typedef enum {
86 # include "epsg_pm.inc"
87 primemeridian_end
88 } primemeridian_t;
89
90 typedef enum {
91 # include "epsg_pcs.inc"
92 pcstype_end
93 } pcstype_t;
94
95 typedef enum {
96 # include "epsg_proj.inc"
97 projection_end
98 } projection_t;
99
100 typedef enum {
101 # include "geo_ctrans.inc"
102 coordtrans_end
103 } coordtrans_t;
104
105 typedef enum {
106 # include "epsg_vertcs.inc"
107 vertcs_end
108 } vertcstype_t;
109
110
111 typedef enum {
112 VDatumBase = 1
113 } vdatum_t;
114
115 #endif /* LIBGEOTIFF_GEOVALUES_H_ */