WRAPPER_API const wchar_t *get_Label() const
The get_Label method returns a string that describes the meaning of this LinearValue. The value of this string is for the users convenience, but it is generally used to describe that which this LinearValue measures. For example, if this LinearValue is the North coordinate of a ProjectedPoint, then the Label may be "Northing".
void LinearValue_getLabel(GeoCalcPBW::ProjectedPoint & pt)
{
CString description;
description += "ProjectedPoint value:\n";
if(CString(_tochar(pt.get_North().get_Format()).c_str()) == CString("MGRS"))
{
description += "MGRS = ";
description += _tochar(pt.get_North().ToString());
}
else
{
description += _tochar(pt.get_North().get_Label()).c_str();
description += " = ";
char * val = new char[10];
sprintf(val, "%lf", pt.get_North().get_InUnits());
description += val;
description += " ";
description += _tochar(pt.get_North().get_Units().get_Abbreviation()).c_str();
description += "\n";
description += _tochar(pt.get_East().get_Label()).c_str();
description += " = ";
sprintf(val, "%lf", pt.get_East().get_InUnits());
description += val;
description += " ";
description += _tochar(pt.get_East().get_Units().get_Abbreviation()).c_str();
delete [] val;
}
AfxMessageBox(description);
}