GeoGenerator.ProduceLines

GeoGenerator.ProduceLines method

Creates a new ILineString Enumerator with a given number of random items, all of them within a given extent.

public static IEnumerable<ILineString> ProduceLines(Extent rect, LineGeneratorOptions options)
ParameterTypeDescription
rectExtentSpecified area (see Extent)
optionsLineGeneratorOptionsLine creation options (see LineGeneratorOptions)

Return Value

Array of lines (see enumeration of ILineString)

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionNumber of lines must be grater then one.
NullReferenceExceptionExtent must have a value (not be NULL)

See Also