GeometryConversionOperator Class
Converts feature geometries between different geometry types.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CEOperators assembly)
Syntax
public class GeometryConversionOperator : UnaryOperator
Remarks
This operator converts between different feature geometry types, including triangulation of polygons and rasters to meshes. The conversions that can be performed are:
From | To | Comment |
---|---|---|
Line | Polygon | |
Line | Point | Each node of the line will produce a point feature with two new attributes, gcopNodeIndex and gcopReverseNodeIndex. The value of gcopNodeIndex gives the zero-based index of the point in the line geometry, so the first point gets 0, the second point gets 1, etc. The value of gcopReverseNodeIndex is similar but in the reverse order, so the last point gets 0, the next to last point gets 1, etc. |
Polygon | Line | |
Polygon | Point | One point for each node in the polygon rings |
Polygon | Mesh | A mesh that represents the surface of the polygon |
Raster | Polygon | A polygon that covers the raster |
Raster | Line | A line that outlines the edge of the raster |
Raster | Point | One point for each corner of the raster |
Raster | Mesh | A mesh that represents the surface of the raster if the cell values are interpreted as height values. This conversion uses MaxError and EdgeCurtains. |
Mesh | Point | One point for each mesh node |
Mesh | Raster | A raster covering the extent of the mesh with resolution defined by pixel size. |
Inheritance Hierarchy
System.Object
EngineObject
Operator
UnaryOperator
GeometryConversionOperator
Platforms
Windows, Linux, Android
GeometryConversionOperator Members
The GeometryConversionOperator type has the following members.
Constructors
Name | Description |
---|---|
GeometryConversionOperator | Initializes a new instance of the GeometryConversionOperator class. |
Properties
Name | Description |
---|---|
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 |
EdgeCurtains | Gets or sets a flag indicating if curtains should be added to mesh geometries. |
From | Gets or sets the type of geometries that should be converted. |
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 GeometryConversionOperator has been disposed. Inherited from EngineObject |
IsoMetadataDocument | Gets or sets the path to an ISO 19139 metadata document for the operator. Inherited from Operator |
MaxError | Gets or sets the maximum vertical deviation when converting from raster to mesh. |
MeshToRasterValue | Gets or sets MeshToRasterValue mode of the conversion. |
Name | Gets or sets the name of the operator. Inherited from Operator |
NativeHandle | Gets the native Carmenta Engine kernel object the current GeometryConversionOperator represents. Inherited from EngineObject |
To | Gets or sets the new type of geometry that the incoming geometries should be converted to. |
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 |