private static void WriteBoundary(XmlWriter writer, MultiPolygon boundary)
{
if (boundary == null || boundary.Polygons == null || boundary.Polygons.Count == 0)
return;
// Guidance pattern only supports a single polygon-based boundary
var polygon = boundary.Polygons[0];
ShapeWriter.WritePolygon(writer, polygon);
}