OsmExtensions

public static class OsmExtensions
Provides a set of extension methods for Osm related types.

Methods

Format

#Example
public static string Format(this IEnumerable<OsmTag> tags, string operator, string separator)
Format a collection of OSM tags.
tags (IEnumerable<OsmTag>)Tags to format.
operator (string)Name/Value operator.
separator (string)Tag separator.
Formatted tags.

Format

#Example
public static string Format(this IEnumerable<OsmTag> tags)
Format a collection of OSM tags.
tags (IEnumerable<OsmTag>)Tags to format.
Formatted tags.

Format

#Example
public static string Format(this OsmTag[] tags, string operator, string separator)
Format a collection of OSM tags.
tags (OsmTag[])Tags to format.
operator (string)Name/Value operator.
separator (string)Tag separator.
Formatted tags.

Format

#Example
public static string Format(this OsmTag[] tags)
Format a collection of OSM tags.
tags (OsmTag[])Tags to format.
Formatted tags.

HasTagName

#Example
public static bool HasTagName(this IEnumerable<OsmTag> tags, string name, string value)
Test a collection of OsmTags to see whether a given name+value is used at least once.
tags (IEnumerable<OsmTag>)Tags to test.
name (string)Name to search for.
value (string)Value to search for.
True if at least one of the tags matches the name.

HasTagName

#Example
public static bool HasTagName(this IEnumerable<OsmTag> tags, string name)
Test a collection of OsmTags to see whether a given name is used at least once.
tags (IEnumerable<OsmTag>)Tags to test.
name (string)Name to search for.
True if at least one of the tags matches the name.