Geometry Class
Abstract base class for all geometry classes.
NuGet/Assembly: Carmenta.Engine.5.16.2.nupkg (in the CECore assembly)
Syntax
public abstract class Geometry : EngineObject
Remarks
An instance of a Geometry class is normally used as part of a Feature. The same geometry instance cannot be shared between two different features.
Each geometry instance is expressed in the coordinate reference system (the Crs) of its Feature. But the geometry instance itself knows nothing about how the Crs is related to the world, not even the unit of coordinates, so the methods and properties of Geometry and its subclasses use the Crs as an uninterpreted coordinate system. For example, the PolygonGeometry.Area method will return an area in square degrees if the Crs uses the LongLat projection.
Inheritance Hierarchy
System.Object (not available in C#)
EngineObject
Geometry
RasterGeometry
VectorGeometry
Platforms
Windows, Linux, Android
Geometry Members
The Geometry type has the following members.
Properties
Name | Description |
---|---|
IsDisposed | Gets a value that tells whether the current Geometry has been disposed. Inherited from EngineObject |
IsReadOnly | Gets a value indicating whether the Geometry is read-only or not. |
IsValid | Gets a value indicating whether the Geometry is valid or not. |
NativeHandle | Gets the native Carmenta Engine kernel object the current Geometry represents. Inherited from EngineObject |
Type | Gets the geometry type of a Geometry. |
Methods
Name | Description |
---|---|
CalculateBounds | Returns the bounding rectangle of the Geometry. |
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 |
Overloaded. Initializes a new Geometry instance from a WKB representation. | |
Overloaded. Initializes a new Geometry instance from a WKT representation. | |
Move | Moves the Geometry by the specified offset. |
ToWellKnownBinary | Converts a Geometry instance into WKB representation. |
ToWellKnownText | Converts a Geometry instance into WKT representation. |
Transform | Applies a 2D transform to the geometry. |