public static GeometryBag FromXml( string xmlString )
Public Shared Function FromXml( _ ByVal xmlString As String _ ) As GeometryBag
Parameters
- xmlString
- XML string representation of GeometryBag.
Return Value
A GeometryBag.
public static GeometryBag FromXml( string xmlString )
Public Shared Function FromXml( _ ByVal xmlString As String _ ) As GeometryBag
Exception | Description |
---|---|
System.ArgumentNullException | The xmlString is empty or null. |
ArcGIS.Core.Geometry.Exceptions.GeometryObjectException | XML 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}}"; //At 2.x - GeometryBag geometryBag = GeometryBagBuilder.FromJson(jsonString); var geometryBag = GeometryBagBuilderEx.FromJson(jsonString); string xml = geometryBag.ToXml(); //At 2.x - GeometryBag xmlString = GeometryBagBuilder.FromXML(xml); var xmlString = GeometryBagBuilderEx.FromXml(xml);
Target Platforms: Windows 11, Windows 10, Windows 8.1