Exemplo n.º 1
0
        /// <summary>
        /// Converts GeometryCollection to WKT format and appends WKT representation to the output stream.
        /// </summary>
        /// <param name="collection">The GeometryCollection be converted.</param>
        /// <param name="writer">The output Stream to Append WKT representation to.</param>
        private static void AppendGeometryCollectionTaggedText(IGeometryCollection <IGeometry> collection, TextWriter writer)
        {
            writer.Write("geometrycollection ");

            string dimension = WktWriter.GetDimensionText(collection);

            if (string.IsNullOrEmpty(dimension) == false)
            {
                writer.Write(dimension);
                writer.Write(" ");
            }

            WktWriter.AppendGeometryCollectionText(collection, writer);
        }