Public Shared Function FromBinaryXml( _ ByVal xmlString As String _ ) As Multipatch
public static Multipatch FromBinaryXml( string xmlString )
Parameters
- xmlString
- Binary XML string representation of Multipatch.
Return Value
A Multipatch.
Public Shared Function FromBinaryXml( _ ByVal xmlString As String _ ) As Multipatch
public static Multipatch FromBinaryXml( string xmlString )
| Exception | Description |
|---|---|
| System.ArgumentNullException | The xmlString is empty or null. |
| ArcGIS.Core.Geometry.Exceptions.GeometryObjectException | The XML string is invalid or does not represent a multipatch string. |
{
// export to binary xml
string binaryXml = multipatch.ToBinaryXml();
// import from binaryXML - methods need to run on the MCT
Multipatch binaryMultipatch = MultipatchBuilderEx.FromBinaryXml(binaryXml);
// xml export / import
string xml = multipatch.ToXml();
Multipatch xmlMultipatch = MultipatchBuilderEx.FromXml(xml);
// esriShape export/import
byte[] buffer = multipatch.ToEsriShape();
Multipatch esriPatch = MultipatchBuilderEx.FromEsriShape(buffer);
// or use GeometryEngine
Multipatch patchImport = GeometryEngine.Instance.ImportFromEsriShape(EsriShapeImportFlags.EsriShapeImportDefaults, buffer, multipatch.SpatialReference) as Multipatch;
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)