Web API Reference MapGuide Open Source
virtual MgLinearSegment* MgGeometryFactory::CreateLinearSegment ( MgCoordinateCollection coordinates  )  [virtual]

Creates a linear segment from a collection of coordinates.

.NET Syntax
virtual MgLinearSegment CreateLinearSegment(MgCoordinateCollection coordinates);
Java Syntax
virtual MgLinearSegment CreateLinearSegment(MgCoordinateCollection coordinates);
PHP Syntax
virtual MgLinearSegment CreateLinearSegment(MgCoordinateCollection coordinates);

Parameters:
coordinates (MgCoordinateCollection) An MgCoordinateCollection that specifies the coordinates of the linear segment. The collection must contain at least two coordinates.
Returns:
An instance of MgLinearSegment.


Comments or suggestions? Send us feedback.