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