public static GeometryBag FromJson( string jsonString )
Public Shared Function FromJson( _ ByVal jsonString As String _ ) As GeometryBag
Parameters
- jsonString
- JSON string representation of GeometryBag.
Return Value
A GeometryBag.
public static GeometryBag FromJson( string jsonString )
Public Shared Function FromJson( _ ByVal jsonString As String _ ) As GeometryBag
Exception | Description |
---|---|
System.ArgumentNullException | The jsonString is empty or null. |
GeometryObjectException | JSON string is invalid or does not represent a GeometryBag string. |
const string jsonString = "{\"geometries\":[{\"x\":1,\"y\":2},{\"rings\":[[[0,0],[0,4],[3,4],[3,0],[0,0]]]}],\"spatialReference\":{\"wkid\":4326,\"latestWkid\":4326}}"; GeometryBag geometryBag = GeometryBagBuilder.FromJson(jsonString); string xml = geometryBag.ToXML(); GeometryBag xmlString = GeometryBagBuilder.FromXML(xml);
Target Platforms: Windows 10, Windows 8.1, Windows 7