RandomPointOperator Class
An operator that distributes new point features inside polygons and rasters or along lines.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CEOperators assembly)
Syntax
public class RandomPointOperator : UnaryOperator
Remarks
A RandomPointOperator generates point features, distributed inside polygons and rasters or along lines. It can for instance be used to simulate tree positions in wild or planted woods.
![]() |
For rasters, the points are distributed inside raster cells with values that are not 0. Use a RasterReclassificationOperator before the RandomPointOperator to set the raster values to 0 for cells where there should not be any distribution. Remember to set the raster dataset continuous property to False for rasters with discrete values.
Inheritance Hierarchy
System.Object
EngineObject
Operator
UnaryOperator
RandomPointOperator
Platforms
Windows, Linux, Android
RandomPointOperator Members
The RandomPointOperator type has the following members.
Constructors
Name | Description |
---|---|
RandomPointOperator | Initializes a new instance of the RandomPointOperator class. |
Properties
Name | Description |
---|---|
Density | Gets or sets the density of the generated points. |
Description | Gets or sets a short description of the operator. Inherited from Operator |
DisplayName | Gets or sets a display name for the operator. Inherited from Operator |
Distribution | Gets or sets a value specifying how the generated points are distributed. |
Input | Gets or sets the input operator, from which this operator reads features. Inherited from UnaryOperator |
IsDisposed | Gets a value that tells whether the current RandomPointOperator has been disposed. Inherited from EngineObject |
IsoMetadataDocument | Gets or sets the path to an ISO 19139 metadata document for the operator. Inherited from Operator |
Name | Gets or sets the name of the operator. Inherited from Operator |
NativeHandle | Gets the native Carmenta Engine kernel object the current RandomPointOperator represents. Inherited from EngineObject |
PointsPerFeature | Gets or sets the number of points that should be generated for each polygon, raster or line feature. |
Rotation | Gets or sets a value specifying how much uniformly distributed points should be rotated. |
IUserProperties.UserProperties | Gets the AttributeSet that contains the user properties. Inherited from IUserProperties |
Methods
Name | Description |
---|---|
Clone | Creates a copy of an object. Inherited from EngineObject |
Dispose | Releases the reference to the native Carmenta Engine kernel instance the EngineObject represents. Inherited from EngineObject |
Equals | Determines whether this instance is equal to another. Inherited from EngineObject |
FindChildObject | Overloaded. Finds the child object with the specified name. Inherited from Operator |
FlushCache | Removes the objects that have been cached by the operator. Inherited from Operator |
GetChildObjects | Overloaded. Gets the child objects of the current object. Inherited from Operator |
GetFeatures | Overloaded. Gets features from the operator chain. Inherited from Operator |
GetLocalizedDescription | Gets a localized version of the operator description in a specific language. Inherited from Operator |
GetLocalizedDisplayName | Gets a localized version of the operator display name in a specific language. Inherited from Operator |
GetLocalizedIsoMetadataDocument | Gets the path to an ISO 19139 metadata document for a specific language. Inherited from Operator |
GetRasterFeature | Overloaded. Gets raster features from the operator chain and merges them into a single raster. Inherited from Operator |
HasLocalizedDescription | Checks if a localized version of the operator description is available in a specific language. Inherited from Operator |
HasLocalizedDisplayName | Checks if a localized version of the operator display name is available in a specific language. Inherited from Operator |
HasLocalizedIsoMetadataDocument | Checks if an ISO 19139 metadata document is available for a specific language. Inherited from Operator |
SetLocalizedDescription | Sets a operator description in a specific language. Inherited from Operator |
SetLocalizedDisplayName | Sets a operator display name in a specific language. Inherited from Operator |
SetLocalizedIsoMetadataDocument | Sets the path to an ISO 19139 metadata document for the operator, for a specific language. Inherited from Operator |