/// <summary> /// Converts a MultiPoint to <MultiPoint Text> format, then /// Appends it to the writer. /// </summary> /// <param name="multiPoint">The MultiPoint to process.</param> /// <param name="writer">The output stream writer to Append to.</param> private static void AppendMultiPointText(MultiPoint multiPoint, StringWriter writer) { if (multiPoint == null || multiPoint.IsEmpty()) writer.Write("EMPTY"); else { writer.Write("("); for (int i = 0; i < multiPoint.Points.Count; i++) { if (i > 0) writer.Write(", "); AppendCoordinate(multiPoint[i], writer); } writer.Write(")"); } }