Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-proj4 / src / pj_datums.c @ 7098

History | View | Annotate | Download (4.51 KB)

1
/******************************************************************************
2
 * $Id: pj_datums.c,v 1.10 2004/10/28 16:07:55 fwarmerdam Exp $
3
 *
4
 * Project:  PROJ.4
5
 * Purpose:  Built in datum list.
6
 * Author:   Frank Warmerdam, warmerda@home.com
7
 *
8
 ******************************************************************************
9
 * Copyright (c) 2000, Frank Warmerdam
10
 *
11
 * Permission is hereby granted, free of charge, to any person obtaining a
12
 * copy of this software and associated documentation files (the "Software"),
13
 * to deal in the Software without restriction, including without limitation
14
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15
 * and/or sell copies of the Software, and to permit persons to whom the
16
 * Software is furnished to do so, subject to the following conditions:
17
 *
18
 * The above copyright notice and this permission notice shall be included
19
 * in all copies or substantial portions of the Software.
20
 *
21
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27
 * DEALINGS IN THE SOFTWARE.
28
 ******************************************************************************
29
 *
30
 * $Log: pj_datums.c,v $
31
 * Revision 1.10  2004/10/28 16:07:55  fwarmerdam
32
 * added pj_get_*_ref() accessors
33
 *
34
 * Revision 1.9  2004/05/04 01:15:21  warmerda
35
 * Added NZGD49 datum - see bug 339
36
 *
37
 * Revision 1.8  2003/03/28 14:29:28  warmerda
38
 * Fixed ire65 definition ... use mod_airy, not modif_airy.
39
 *
40
 * Revision 1.7  2003/03/17 21:37:22  warmerda
41
 * make NAD27 grids optional, added alaska and ntv2
42
 *
43
 * Revision 1.6  2003/02/06 03:37:52  warmerda
44
 * Fixed typo in madrid prime meridian value.
45
 *
46
 * Revision 1.5  2003/01/15 14:34:55  warmerda
47
 * Added some datums as suggested by GRASS team
48
 *
49
 * Revision 1.4  2002/12/09 16:01:02  warmerda
50
 * added prime meridian support
51
 *
52
 * Revision 1.3  2002/07/08 02:32:05  warmerda
53
 * ensure clean C++ builds
54
 *
55
 * Revision 1.2  2001/04/05 19:32:41  warmerda
56
 * added ntv1_can.dat to NAD27 list
57
 *
58
 * Revision 1.1  2000/07/06 23:32:27  warmerda
59
 * New
60
 *
61
 */
62

    
63
#define PJ_DATUMS__
64

    
65
#include <projects.h>
66

    
67
/* 
68
 * The ellipse code must match one from pj_ellps.c.  The datum id should
69
 * be kept to 12 characters or less if possible.  Use the official OGC 
70
 * datum name for the comments if available. 
71
 */
72

    
73
C_NAMESPACE struct PJ_DATUMS pj_datums[] = {
74
/* id       definition                               ellipse  comments */
75
/* --       ----------                               -------  -------- */
76
"WGS84",    "towgs84=0,0,0",                              "WGS84", "",
77
"GGRS87",   "towgs84=-199.87,74.79,246.62",          "GRS80", 
78
                                "Greek_Geodetic_Reference_System_1987",
79
"NAD83",    "towgs84=0,0,0",                         "GRS80", 
80
                                "North_American_Datum_1983",
81
"NAD27",    "nadgrids=@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",           
82
                                                     "clrk66", 
83
                                "North_American_Datum_1927",
84
"potsdam",  "towgs84=606.0,23.0,413.0",  "bessel",  "Potsdam Rauenberg 1950 DHDN",
85
"carthage",  "towgs84=-263.0,6.0,431.0",  "clark80",  "Carthage 1934 Tunisia",
86
"hermannskogel", "towgs84=653.0,-212.0,449.0",  "bessel",  "Hermannskogel",
87
"ire65",  "towgs84=482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",  "mod_airy",  "Ireland 1965",
88
"nzgd49",    "towgs84=59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993", "intl", "New Zealand Geodetic Datum 1949",
89
NULL,       NULL,                                    NULL,    NULL 
90
};
91

    
92
struct PJ_DATUMS *pj_get_datums_ref()
93

    
94
{
95
    return pj_datums;
96
}
97

    
98
C_NAMESPACE struct PJ_PRIME_MERIDIANS pj_prime_meridians[] = {
99
    /* id        definition                         */
100
    /* --        ----------                         */
101
    "greenwich", "0dE",
102
    "lisbon",    "9d07'54.862\"W",
103
    "paris",     "2d20'14.025\"E",
104
    "bogota",    "74d04'51.3\"E",
105
    "madrid",    "3d41'16.58\"W",
106
    "rome",      "12d27'8.4\"E",
107
    "bern",      "7d26'22.5\"E",
108
    "jakarta",   "106d48'27.79\"E",
109
    "ferro",     "17d40'W",
110
    "brussels",  "4d22'4.71\"E",
111
    "stockholm", "18d3'29.8\"E",
112
    "athens",    "23d42'58.815\"E",
113
    "oslo",      "10d43'22.5\"E",
114
    NULL,        NULL 
115
};
116

    
117
struct PJ_PRIME_MERIDIANS *pj_get_prime_meridians_ref()
118

    
119
{
120
    return pj_prime_meridians;
121
}
122