AddPoint Method

WRAPPER_API void AddPoint(const CoordPoint &point)

 

Description

The AddPoint method adds the specified CoordPoint to this CoordPointCollection.  The index of the last point added will always be get_Count() - 1.

 

Example

void CoordPointCollection_AddPoint(GEOCALCPBW_NAMESPACE::CoordPointCollection & cpc, GEOCALCPBW_NAMESPACE::DataSource & data)

{

_towchar issuer("BMG");

_towchar code("PROJECTED_POINT_USFEET");

cpc.set_PointStyle(*(data.GetProjectedPoint(issuer.c_str(), code.c_str())));

GEOCALCPBW_NAMESPACE::CoordPoint * pt = cpc.get_PointStyle().CloneCoordPoint();

pt->set_InUnits(1, 2, 3);

cpc.AddPoint(*pt);

delete pt;

}