Show / Hide Table of Contents

Class GeoJsonExtension

Contains extension methods for the local geo objects related to the GeoJSON format.

Inheritance
System.Object
GeoJsonExtension
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 GeoJsonExtension

Methods

ToGeoJson(IEnumerable<Polygon>)

Serializes the polygons to GeoJSON.

Declaration
public static string ToGeoJson(this IEnumerable<Polygon> polygons)
Parameters
IEnumerable<Polygon> polygons

Returns
System.String

ToGeoJson(IEnumerable<Tuple<Single, Single, List<Coordinate>>>)

Converts all the lines to geojson.

Declaration
public static string ToGeoJson(this IEnumerable<Tuple<float, float, List<Coordinate>>> lines)
Parameters
IEnumerable<Tuple<System.Single, System.Single, List<Coordinate>>> lines

Returns
System.String

ToGeoJson(Polygon)

Serializes the polygon to GeoJSON.

Declaration
public static string ToGeoJson(this Polygon polygon)
Parameters
Polygon polygon

Returns
System.String

WriteGeoJson(IEnumerable<Polygon>, TextWriter)

Writes the polygon as geojson.

Declaration
public static void WriteGeoJson(this IEnumerable<Polygon> polygons, TextWriter writer)
Parameters
IEnumerable<Polygon> polygons

TextWriter writer

WriteGeoJson(Polygon, TextWriter)

Writes the polygon as geojson.

Declaration
public static void WriteGeoJson(this Polygon polygon, TextWriter writer)
Parameters
Polygon polygon

TextWriter writer

Back to top Built by Itinero, MIT licensed.