MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends

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.