public static Multipatch FromXML( string XMLString )
Public Shared Function FromXML( _ ByVal XMLString As String _ ) As Multipatch
Parameters
- XMLString
- XML string representation of Multipatch.
Return Value
A Multipatch.
public static Multipatch FromXML( string XMLString )
Public Shared Function FromXML( _ ByVal XMLString As String _ ) As Multipatch
Exception | Description |
---|---|
System.ArgumentNullException | The XMLString is empty or null. |
GeometryObjectException | XML 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 = MultipatchBuilder.FromBinaryXML(binaryXml); // xml export / import string xml = multiPatch.ToXML(); Multipatch xmlMultipatch = MultipatchBuilder.FromXML(xml); // esriShape export/import byte[] buffer = multiPatch.ToEsriShape(); Multipatch esriPatch = MultipatchBuilder.FromEsriShape(buffer); // or use GeometryEngine Multipatch patchImport = GeometryEngine.Instance.ImportFromEsriShape(EsriShapeImportFlags.esriShapeImportDefaults, buffer, multiPatch.SpatialReference) as Multipatch;
Target Platforms: Windows 10, Windows 8.1, Windows 7