public static SpatialReference FromJson( string JSONString )
Public Shared Function FromJson( _ ByVal JSONString As String _ ) As SpatialReference
Parameters
- JSONString
- JSON string representation of a SpatialReference.
public static SpatialReference FromJson( string JSONString )
Public Shared Function FromJson( _ ByVal JSONString As String _ ) As SpatialReference
Exception | Description |
---|---|
System.ArgumentNullException | The JSONString is empty or null. |
SpatialReference srWithVertical = SpatialReferenceBuilder.CreateSpatialReference(4326, 6916); string xml = srWithVertical.ToXML(); SpatialReference importedSR = SpatialReferenceBuilder.FromXML(xml); // importedSR.Wkid = 4326 // importedSR.VcsWkid = 6916 string json = srWithVertical.ToJson(); importedSR = SpatialReferenceBuilder.FromJson(json); // importedSR.Wkid = 4326 // importedSR.VcsWkid = 6916
Target Platforms: Windows 10, Windows 8.1, Windows 7