Show / Hide Table of Contents

Class Extensions

Contains extensions methods related to OSM-GeoAPI-NTS objects.

Inheritance
System.Object
Extensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class Extensions

Methods

Contains(IAttributesTable, String, Object)

Returns true if this table contains the given attribute and value.

Declaration
public static bool Contains(this IAttributesTable table, string attribute, object value)
Parameters
IAttributesTable table

System.String attribute

System.Object value

Returns
System.Boolean

FilterSpatial(IEnumerable<OsmGeo>, Polygon, Boolean)

Filters a stream of objects spatially.

Declaration
public static OsmStreamSource FilterSpatial(this IEnumerable<OsmGeo> source, Polygon polygon, bool completeWays = false)
Parameters
IEnumerable<OsmGeo> source

Polygon polygon

System.Boolean completeWays

Returns
OsmStreamSource

GetCoordinate(Node)

Gets the coordinate from the given node.

Declaration
public static Coordinate GetCoordinate(this Node node)
Parameters
Node node

Returns
Coordinate

GetCoordinates(CompleteWay)

Gets the coordinates from the given way.

Declaration
public static List<Coordinate> GetCoordinates(this CompleteWay way)
Parameters
CompleteWay way

Returns
List<Coordinate>

GetRange<T>(T[], Int32, Int32)

Gets a range of elements.

Declaration
public static List<T> GetRange<T>(this T[] array, int index, int count)
Parameters
T[] array

System.Int32 index

System.Int32 count

Returns
List<T>

Type Parameters
T

ToAttributeTable(TagsCollectionBase)

Converts this tags collection to an attribute table.

Declaration
public static AttributesTable ToAttributeTable(this TagsCollectionBase tags)
Parameters
TagsCollectionBase tags

Returns
AttributesTable

ToFeatureSource(IEnumerable<OsmGeo>)

Converts the given source into a feature source.

Declaration
public static IFeatureStreamSource ToFeatureSource(this IEnumerable<OsmGeo> source)
Parameters
IEnumerable<OsmGeo> source

Returns
IFeatureStreamSource

Back to top Built by Itinero, MIT licensed.