set_Label Method

WRAPPER_API void set_Label(const wchar_t *value)

 

Description

The set_Label method sets the 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".

 

Example

void LinearValue_setLabel(GeoCalcPBW::DataSource & data)

{

GeoCalcPBW::LinearValue * lv = GeoCalcPBW::LinearValue::CreateLinearValue();

GeoCalcPBW::LinearUnit * lu = data.GetLinearUnit(L"BMG", L"PERCH");

lv->set_Units(*lu);

lv->set_InUnits(43);

lv->set_Label(L"Northing");

delete lv;

delete lu;

}