Constructor KmlGeometry
KmlGeometry(Geometry, KmlAltitudeMode)
Initializes a new instance of the KmlGeometry class using a geometry and an altitude mode.
Declaration
public KmlGeometry(Geometry geometry, KmlAltitudeMode altitudeMode)Parameters
| Type | Name | Description | 
|---|---|---|
| Geometry | geometry | The Geometry used for creating the new KmlGeometry. | 
| KmlAltitudeMode | altitudeMode | The KmlAltitudeMode. Determines how altitude values should be interpreted. | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | 
 | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.6 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.6 - 200.8 | 
| Xamarin.Android | 100.6 - 100.15 | 
| Xamarin.iOS | 100.6 - 100.15 | 
| UWP | 100.6 - 200.8 | 
Relevant samples
KmlGeometry(Geometry, KmlAltitudeMode, Boolean)
Initializes a new instance of the KmlGeometry class using geometry, an altitude mode, and boolean indicating whether the geometry is extruded.
Declaration
public KmlGeometry(Geometry geometry, KmlAltitudeMode altitudeMode, bool isExtruded)Parameters
| Type | Name | Description | 
|---|---|---|
| Geometry | geometry | The Geometry used for creating the new KmlGeometry. | 
| KmlAltitudeMode | altitudeMode | The KmlAltitudeMode. Determines how altitude values should be interpreted. | 
| System.Boolean | isExtruded | If  | 
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | 
 | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.6 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.6 - 200.8 | 
| Xamarin.Android | 100.6 - 100.15 | 
| Xamarin.iOS | 100.6 - 100.15 | 
| UWP | 100.6 - 200.8 | 
KmlGeometry(Geometry, KmlAltitudeMode, Boolean, Boolean)
Initializes a new instance of the KmlGeometry class using geometry, an altitude mode, and flags.
Declaration
public KmlGeometry(Geometry geometry, KmlAltitudeMode altitudeMode, bool isExtruded, bool isTessellated)Parameters
| Type | Name | Description | 
|---|---|---|
| Geometry | geometry | The Geometry used for creating the new KmlGeometry. | 
| KmlAltitudeMode | altitudeMode | The KmlAltitudeMode. Determines how altitude values should be interpreted. | 
| System.Boolean | isExtruded | If  | 
| System.Boolean | isTessellated | If  | 
Remarks
Polyline, polygon, and track geometries can be tessellated. Extrusion is ignored when the altitude mode is set to ClampToGround, or when the geometry is a KmlModel.
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | 
 | 
Applies to
Platforms and versions
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.6 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.6 - 200.8 | 
| Xamarin.Android | 100.6 - 100.15 | 
| Xamarin.iOS | 100.6 - 100.15 | 
| UWP | 100.6 - 200.8 |