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.GenericIEnumerableT
- name
- Type: SystemFuncT, String
The name for the placemark. - z
- Type: SystemFuncT, NullableDouble
The altitude in meters. - placemarkElements
- Type: SystemFuncT, XElement
Any extra placemark elements. - documentElements
- Type: System.Xml.LinqXElement
Any extra document elements.
Type Parameters
- T
Return Value
Type: XElementUsage 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