Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

CreateArcSegment
CreateCoordinateXY
CreateCoordinateXYM
CreateCoordinateXYZ
CreateCoordinateXYZM
CreateCurvePolygon
CreateCurveRing
CreateCurveString
CreateLinearRing
CreateLinearSegment
CreateLineString
CreateMultiCurvePolygon
CreateMultiCurveString
CreateMultiGeometry
CreateMultiLineString
CreateMultiPoint
CreateMultiPolygon
CreatePoint
CreatePolygon
MgGeometryFactory
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.

Comments or suggestions? Send us feedback.