AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgPolygon* MgGeometryFactory::CreatePolygon ( MgLinearRing outerRing,
MgLinearRingCollection innerRings 
) [virtual]

Creates a polygon from an outer ring and a collection of inner rings.

.NET Syntax
virtual MgPolygon CreatePolygon(MgLinearRing outerRing, MgLinearRingCollection innerRings);
Java Syntax
virtual MgPolygon CreatePolygon(MgLinearRing outerRing, MgLinearRingCollection innerRings);
PHP Syntax
virtual MgPolygon CreatePolygon(MgLinearRing outerRing, MgLinearRingCollection innerRings);

Parameters:
outerRing (MgLinearRing) An MgLinearRing that specifies the polygons outer boundary.
innerRings (MgLinearRingCollection) An MgLinearRingCollection that specifies the polygons holes. This parameter may be null.
Returns:
An instance of MgPolygon.