Show / Hide Table of Contents

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

geometry is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7
Relevant samples
Create and save KML file: Construct a KML document and save it as a KMZ file.

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 true indicates that KmlGeometry should be extruded.

Exceptions
Type Condition
System.ArgumentNullException

geometry is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7

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 true indicates that Geometry should be extruded.

System.Boolean isTessellated

If true indicates that Geometry should be tessellated to follow the terrain.

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

geometry is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7
In This Article
Back to top Copyright © 2022 Esri.