set_Height Method

WRAPPER_API void set_Height(const LinearValue &value)

 

Description

The set_Height method sets the LinearValue that gives the height coordinate.

 

Example

void GeodeticPoint_setHeight(GeoCalcPBW::DataSource & data)

{

GeoCalcPBW::GeodeticPoint * pt = GeoCalcPBW::GeodeticPoint::CreateGeodeticPoint(2);

GeoCalcPBW::AngularUnit * au = data.GetAngularUnit(L"BMG", L"RADIANS");

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

 

GeoCalcPBW::AngularValue lat;

lat.set_Units(*au);

lat.set_InUnits(-.896);

pt->set_Latitude(lat);

GeoCalcPBW::AngularValue lon;

lon.set_Units(*au);

lon.set_InUnits(1.006);

pt->set_Longitude(lon);

GeoCalcPBW::LinearValue height;

height.set_Units(*lu);

height.set_InUnits(46);

pt->set_Height(height);

 

delete pt;

delete au;

delete lu;

}