Kml.ToKml<T> Method (IEnumerable<T>, Func<T, String>, Func<T, Nullable<Double>>, Func<T,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,
	Func<T, Nullable<double>> z,
	Func<T, XElement[]> placemarkElements,
	params XElement[] documentElements
)
where T : Feature

Parameters

features
Type: System.Collections.Generic.IEnumerable<T>
name
Type: System.Func<T, String>
The name for the placemark.
z
Type: System.Func<T, Nullable<Double>>
The altitude in meters.
placemarkElements
Type: System.Func<T,XElement[]>
Any extra placemark elements.
documentElements
Type:System.Xml.Linq.XElement[]
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 IEnumerable<T>. 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