GeoGenerator.ProducePolygons
GeoGenerator.ProducePolygons method
Creates a new IPolygon Enumerator with a given number of random items, all of them within a given extent.
public static IEnumerable<IPolygon> ProducePolygons(Extent rect, PolygonGeneratorOptions options)
Parameter | Type | Description |
---|---|---|
rect | Extent | Specified area (see Extent ) |
options | PolygonGeneratorOptions | Polygon creation options (see PolygonGeneratorOptions ) |
Return Value
Array of polygons (see enumeration of IPolygon
)
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Number of polygons must be grater then one. |
NullReferenceException | Extent must have a value (not be NULL) |
ArgumentException | The minimum and maximum lengths must be unequal and greater than 0 |
ArgumentException | The maximum length must be greater than the minimum |
See Also
- interface IPolygon
- class Extent
- class PolygonGeneratorOptions
- class GeoGenerator
- namespace Aspose.Gis.GeoTools
- assembly Aspose.GIS