GeoJsonUtils.Load method
Version 1.0.0-beta002
.NET Framework 4.7
Namespace | Skybrud.Essentials.Maps.GeoJson |
---|---|
Assembly | Skybrud.Essentials.Maps.dll |
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
.
public static T Load(string path)
Parameters
path
String
The path to the JSON file on disk.
Returns
T
An instance of .
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.
public static GeoJsonObject Load(string path)
Parameters
path
String
The path to the JSON file on disk.
Returns
An instance of GeoJsonObject.