50 return 6.21371192237334e-4;
54 return 3.28083989501312;
58 return 3.28083333333333;
100 return 2.47105381467165e-4;
108 return 3.86102158542446e-7;
112 return 10.7639104167097;
116 return 10.7638673611111;
209 return plural ?
_(
"square units") :
_(
"square unit");
211 return plural ?
_(
"units") :
_(
"unit");
216 return plural ?
_(
"square meters") :
_(
"square meter");
218 return plural ?
_(
"meters") :
_(
"meter");
223 return plural ?
_(
"square kilometers") :
_(
"square kilometer");
225 return plural ?
_(
"kilometers") :
_(
"kilometer");
230 return plural ?
_(
"acres") :
_(
"acre");
238 return plural ?
_(
"hectares") :
_(
"hectare");
246 return plural ?
_(
"square miles") :
_(
"square mile");
248 return plural ?
_(
"miles") :
_(
"mile");
253 return plural ?
_(
"square feet") :
_(
"square foot");
255 return plural ?
_(
"feet") :
_(
"foot");
260 return plural ?
_(
"square US feet") :
_(
"square US foot");
262 return plural ?
_(
"US feet") :
_(
"US foot");
267 return plural ?
_(
"square degrees") :
_(
"square degree");
269 return plural ?
_(
"degrees") :
_(
"degree");
273 return plural ?
_(
"years") :
_(
"year");
277 return plural ?
_(
"months") :
_(
"month");
281 return plural ?
_(
"days") :
_(
"day");
285 return plural ?
_(
"hours") :
_(
"hour");
289 return plural ?
_(
"minutes") :
_(
"minute");
293 return plural ?
_(
"seconds") :
_(
"second");
322 if (units_name ==
NULL) {
326 if (strcasecmp(units_name,
"meter") == 0 ||
327 strcasecmp(units_name,
"meters") == 0)
329 else if (strcasecmp(units_name,
"kilometer") == 0 ||
330 strcasecmp(units_name,
"kilometers") == 0)
332 else if (strcasecmp(units_name,
"acre") == 0 ||
333 strcasecmp(units_name,
"acres") == 0)
335 else if (strcasecmp(units_name,
"hectare") == 0 ||
336 strcasecmp(units_name,
"hectares") == 0)
338 else if (strcasecmp(units_name,
"mile") == 0 ||
339 strcasecmp(units_name,
"miles") == 0)
341 else if (strcasecmp(units_name,
"foot") == 0 ||
342 strcasecmp(units_name,
"feet") == 0)
344 else if (strcasecmp(units_name,
"foot_us") == 0 ||
345 strcasecmp(units_name,
"foot_uss") == 0)
347 else if (strcasecmp(units_name,
"degree") == 0 ||
348 strcasecmp(units_name,
"degrees") == 0)
350 else if (strcasecmp(units_name,
"year") == 0 ||
351 strcasecmp(units_name,
"years") == 0)
353 else if (strcasecmp(units_name,
"month") == 0 ||
354 strcasecmp(units_name,
"months") == 0)
356 else if (strcasecmp(units_name,
"day") == 0 ||
357 strcasecmp(units_name,
"days") == 0)
359 else if (strcasecmp(units_name,
"hour") == 0 ||
360 strcasecmp(units_name,
"hours") == 0)
362 else if (strcasecmp(units_name,
"minute") == 0 ||
363 strcasecmp(units_name,
"minutes") == 0)
365 else if (strcasecmp(units_name,
"secons") == 0 ||
366 strcasecmp(units_name,
"seconds") == 0)
const char * G_database_unit_name(int)
Get units (localized) name for the current location.
double G_meters_to_units_factor(int units)
Units conversion from meters to units.
const char * G_get_units_name(int units, int plural, int square)
Get localized units name.
double G_meters_to_units_factor_sq(int units)
Units conversion from square meters to square units.
int G_is_units_type_spatial(int units)
Check if the unit is of spatial type.
int G_is_units_type_temporal(int units)
Check if the unit is of temporal type.
int G_units(const char *units_name)
Get units code by name.