VerticalDatum Constructor

WRAPPER_API VerticalDatum()

WRAPPER_API VerticalDatum(ClassType classType)

WRAPPER_API VerticalDatum(const VerticalDatum &source)

 

Description

The VerticalDatum constructor creates a new instance of the VerticalDatum class.  The first constructor takes no arguments and produces a VerticalDatum with Class set to Unassociated.  The second constructor takes a single argument that specifies the Class, according to the ClassType enumeration.  It is necessary to set the Parameters before the VerticalDatum will be ready to use.  The third constructor is a copy-constructor, which produces a VerticalDatum with the same value as the VerticalDatum passed as argument.

 

Example

void VerticalDatum_VerticalDatum(GeoCalcPBW::DataSource & data)

{

GeoCalcPBW::VerticalDatum vd(GeoCalcPBW::VerticalDatum::ClassType::NGVD29);

GeoCalcPBW::Envelope * env = data.GetEnvelope(L"BMG", L"STANDARD_ENVELOPE");

vd.set_Envelope(*env);

vd.get_Parameters().set_StringItem(L"path", L"parfiles");

vd.get_Parameters().set_StringItem(L"extension", L".94");

delete env;

}