Public Shared Function FromJson( _ ByVal jsonString As String _ ) As Envelope
public static Envelope FromJson( string jsonString )
Parameters
- jsonString
- JSON representation of an envelope.
Return Value
An Envelope
Public Shared Function FromJson( _ ByVal jsonString As String _ ) As Envelope
public static Envelope FromJson( string jsonString )
| Exception | Description |
|---|---|
| System.ArgumentNullException | The jsonString is empty or null. |
| ArcGIS.Core.Geometry.Exceptions.GeometryObjectException | JSON string is invalid or does not represent an Envelope string. |
{
string jsonString = "{ \"xmin\" : 1, \"ymin\" : 2,\"xmax\":3,\"ymax\":4,\"spatialReference\":{\"wkid\":4326}}";
Envelope envFromJson = EnvelopeBuilderEx.FromJson(jsonString);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)