GeoJsonUtils Class

Version 1.0.0-beta002
.NET Framework 4.7
Namespace Skybrud.Essentials.Maps.GeoJson
Assembly Skybrud.Essentials.Maps.dll
Visibility Public
Keywords Static
Inheritance Object
public static class GeoJsonUtils { }

Methods

Load(string) (static)

Loads the JSON string at the specified path and parses it into an instance of .

As the type is specified in the JSON, the returned instance for a GeoJSON Feature will be GeoJsonFeature, a Point will be GeoJsonPoint and so accordingly.

If the type specified in the JSON doesn't match that of , this method will return null.

Load(string) (static)

Loads the JSON string at the specified path and parses it into an instance of GeoJsonObject.

As the type is specified in the JSON, the returned instance for a GeoJSON Feature will be GeoJsonFeature, a Point will be GeoJsonPoint and so accordingly.

Parse(string) (static)

Parses the specified json string into an instance of .

Parse(string) (static)

Parses the specified json string into an instance inheriting from GeoJsonObject.

As the type is specified in the JSON, the returned instance for a GeoJSON Feature will be GeoJsonFeature, a Point will be GeoJsonPoint and so accordingly.