TraceOnParallel Method

WRAPPER_API void TraceOnParallel(CoordPointCollection& trace, const GeodeticPoint& start, const GeodeticPoint& end, double spacing) const;

Description

Populates a coordinate point collection with regularly-spaced geodetic points tracing a parallel line (line of latitude).

 

Example

void Ellipsoid_TraceOnParallel()

{

GeodeticPoint *start;

GeodeticPoint *end;

Ellipsoid *el;

CoordPointCollection *trace = new CoordPointCollection();

double spacing = 1000 //in meters

el = m_DataSource->GetEllipsoid(BMG_T("BMG"),BMG_T("WGS84"));

start = m_DataSource->GetGeodeticPoint(BMG_T("BMG"),BMG_T("GEODETIC_POINT_DEGREES"));

end = m_DataSource->GetGeodeticPoint(BMG_T("BMG"),BMG_T("GEODETIC_POINT_DEGREES"));

start->set_InUnits(42,-69);

end->set_InUnits(45,-69);

trace->set_PointStyle(*m_DataSource->GetGeodeticPoint(BMG_T("BMG"),BMG_T("GEODETIC_POINT_DEGREES"));

el->TraceOnParallel(*trace,*start,*end,spacing);

 

Disposal::Dispose(start);

Disposal::Dispose(end);

Disposal::Dispose(el);

Disposal::Dispose(trace);

 

}