CreateEnvelope Constructor

WRAPPER_API static Envelope *CreateEnvelope()

 

Description

The CreateEnvelope constructor creates a new instance of the Envelope class.  Upon construction, the AlwaysAccept property is set to true, and the MaxPoint and MinPoint are both located at the origin of the CoordSys.

 

Example

void Envelope_CreateEnvelope(GeoCalcPBW::DataSource & data)

{

GeoCalcPBW::Envelope * env = GeoCalcPBW::Envelope::CreateEnvelope();

env->set_AlwaysAccept(true);

GeoCalcPBW::GeodeticPoint * minPt = data.GetGeodeticPoint(L"BMG", L"GEODETIC_POINT_DEGREES");

GeoCalcPBW::GeodeticPoint * maxPt = data.GetGeodeticPoint(L"BMG", L"GEODETIC_POINT_DEGREES");

minPt->set_InUnits(23, 44);

maxPt->set_InUnits(31, 50);

env->set_MinPoint(*minPt);

env->set_MaxPoint(*maxPt);

 

delete env;

delete minPt;

delete maxPt;

}