svn-gvsig-desktop / tags / v1_12_0_Build_1417 / libraries / libjni-proj4 / src / pj_units.c @ 40245
History | View | Annotate | Download (1.35 KB)
1 |
/* definition of standard cartesian units */
|
---|---|
2 |
#ifndef lint
|
3 |
static const char SCCSID[]="@(#)pj_units.c 4.6 93/06/12 GIE REL"; |
4 |
#endif
|
5 |
#define PJ_UNITS__
|
6 |
#include <projects.h> |
7 |
/* Field 2 that contains the multiplier to convert named units to meters
|
8 |
** may be expressed by either a simple floating point constant or a
|
9 |
** numerator/denomenator values (e.g. 1/1000) */
|
10 |
C_NAMESPACE struct PJ_UNITS
|
11 |
pj_units[] = { |
12 |
"km", "1000.", "Kilometer", |
13 |
"m", "1.", "Meter", |
14 |
"dm", "1/10", "Decimeter", |
15 |
"cm", "1/100", "Centimeter", |
16 |
"mm", "1/1000", "Millimeter", |
17 |
"kmi", "1852.0", "International Nautical Mile", |
18 |
"in", "0.0254", "International Inch", |
19 |
"ft", "0.3048", "International Foot", |
20 |
"yd", "0.9144", "International Yard", |
21 |
"mi", "1609.344", "International Statute Mile", |
22 |
"fath", "1.8288", "International Fathom", |
23 |
"ch", "20.1168", "International Chain", |
24 |
"link", "0.201168", "International Link", |
25 |
"us-in", "1./39.37", "U.S. Surveyor's Inch", |
26 |
"us-ft", "0.304800609601219", "U.S. Surveyor's Foot", |
27 |
"us-yd", "0.914401828803658", "U.S. Surveyor's Yard", |
28 |
"us-ch", "20.11684023368047", "U.S. Surveyor's Chain", |
29 |
"us-mi", "1609.347218694437", "U.S. Surveyor's Statute Mile", |
30 |
"ind-yd", "0.91439523", "Indian Yard", |
31 |
"ind-ft", "0.30479841", "Indian Foot", |
32 |
"ind-ch", "20.11669506", "Indian Chain", |
33 |
(char *)0, (char *)0, (char *)0 |
34 |
}; |
35 |
|
36 |
struct PJ_UNITS *pj_get_units_ref()
|
37 |
|
38 |
{ |
39 |
return pj_units;
|
40 |
} |