KmlToKmlT Method (IEnumerableT, FuncT, String, FuncT, NullableDouble, FuncT, KmlStyle, FuncT, XElement, XElement)

PreStorm - A Data Client for ArcGIS Server REST API
Converts the features to KML.

Namespace:  PreStorm
Assembly:  PreStorm (in PreStorm.dll) Version: 1.8.19.0 (1.8.19.0)
Syntax

public static XElement ToKml<T>(
	this IEnumerable<T> features,
	Func<T, string> name = null,
	Func<T, Nullable<double>> z = null,
	Func<T, KmlStyle> style = null,
	Func<T, XElement[]> placemarkElements = null,
	params XElement[] documentElements
)
where T : Feature

Parameters

features
Type: System.Collections.GenericIEnumerableT
name (Optional)
Type: SystemFuncT, String
The name for the placemark.
z (Optional)
Type: SystemFuncT, NullableDouble
The altitude in meters.
style (Optional)
Type: SystemFuncT, KmlStyle
The style for the placemark.
placemarkElements (Optional)
Type: SystemFuncT, XElement
Any extra placemark elements.
documentElements
Type: System.Xml.LinqXElement
Any extra document elements.

Type Parameters

T

Return Value

Type: XElement

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference