예제 #1
0
        /// <summary>
        /// Converts a MultiLineString to &lt;MultiLineString Text&gt;
        /// format, then Appends it to the writer.
        /// </summary>
        /// <param name="multiLineString">The MultiLineString to process.</param>
        /// <param name="level"></param>
        /// <param name="indentFirst"></param>
        /// <param name="writer">The output stream writer to Append to.</param>
        protected void AppendMultiLineStringText(MultiLineString multiLineString, int level, bool indentFirst, StringWriter writer)
        {
            if (multiLineString.isEmpty())
            {
                writer.Write("EMPTY");
            }
            else
            {
                int  level2   = level;
                bool doIndent = indentFirst;
                writer.Write("(");

                for (int i = 0; i < multiLineString.getNumGeometries(); i++)
                {
                    if (i > 0)
                    {
                        writer.Write(", ");
                        level2   = level + 1;
                        doIndent = true;
                    }

                    AppendLineStringText((LineString)multiLineString.getGeometryN(i), level2, doIndent, writer);
                }

                writer.Write(")");
            }
        }
예제 #2
0
 /// <summary>
 /// Converts a MultiLineString to &lt;MultiLineString Text&gt;
 /// format, then Appends it to the writer.
 /// </summary>
 /// <param name="multiLineString">The MultiLineString to process.</param>
 /// <param name="writer">The output stream writer to Append to.</param>
 protected void AppendMultiLineStringText(MultiLineString multiLineString, TextWriter writer)
 {
     if (multiLineString.isEmpty())
     {
         writer.Write("EMPTY");
     }
     else
     {
         for (int i = 0; i < multiLineString.getNumGeometries(); i++)
         {
             if (i > 0)
             {
                 writer.Write(", ");
             }
             //AppendLineStringText((LineString) multiLineString.GetGeometryN(i), level2, doIndent, writer);
             AppendLineStringText((LineString)multiLineString.getGeometryN(i), writer);
         }
         //writer.Write(")");
     }
 }
예제 #3
0
        /// <summary>
        /// Converts a MultiLineString to &lt;MultiLineString Text&gt;
        /// format, then Appends it to the writer.
        /// </summary>
        /// <param name="multiLineString">The MultiLineString to process.</param>
        /// <param name="level"></param>
        /// <param name="indentFirst"></param>
        /// <param name="writer">The output stream writer to Append to.</param>
        protected void AppendMultiLineStringText(MultiLineString multiLineString, int level, bool indentFirst, StringWriter writer)
        {
            if ( multiLineString.isEmpty() )
            {
                writer.Write("EMPTY");
            }
            else
            {
                int level2 = level;
                bool doIndent = indentFirst;
                writer.Write("(");

                for (int i = 0; i < multiLineString.getNumGeometries(); i++)
                {
                    if (i > 0)
                    {
                        writer.Write(", ");
                        level2 = level + 1;
                        doIndent = true;
                    }

                    AppendLineStringText((LineString) multiLineString.getGeometryN(i), level2, doIndent, writer);
                }

                writer.Write(")");
            }
        }
예제 #4
0
 /// <summary>
 /// Converts a MultiLineString to &lt;MultiLineString Text&gt;
 /// format, then Appends it to the writer.
 /// </summary>
 /// <param name="multiLineString">The MultiLineString to process.</param>
 /// <param name="writer">The output stream writer to Append to.</param>
 protected void AppendMultiLineStringText(MultiLineString multiLineString, TextWriter writer)
 {
     if (multiLineString.isEmpty())
     {
         writer.Write("EMPTY");
     }
     else
     {
         for (int i = 0; i < multiLineString.getNumGeometries(); i++)
         {
             if (i > 0)
             {
                 writer.Write(", ");
             }
             //AppendLineStringText((LineString) multiLineString.GetGeometryN(i), level2, doIndent, writer);
             AppendLineStringText((LineString) multiLineString.getGeometryN(i), writer);
         }
         //writer.Write(")");
     }
 }