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)
ParameterTypeDescription
rectExtentSpecified area (see Extent)
optionsPolygonGeneratorOptionsPolygon creation options (see PolygonGeneratorOptions)

Return Value

Array of polygons (see enumeration of IPolygon)

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionNumber of polygons must be grater then one.
NullReferenceExceptionExtent must have a value (not be NULL)
ArgumentExceptionThe minimum and maximum lengths must be unequal and greater than 0
ArgumentExceptionThe maximum length must be greater than the minimum

See Also