Ejemplo n.º 1
0
 /// <summary>
 /// Writes MultiPolygon to the output using specified writer.
 /// </summary>
 /// <param name="multiPolygon">The MultiPolygon to write.</param>
 /// <param name="writer">The BinaryWriter used to write geometry to the output.</param>
 private static void WriteMultiPolygon(IMultiPolygon multiPolygon, BinaryWriter writer)
 {
     writer.Write((uint)WkbWriter.AdjustGeometryType(multiPolygon, WkbGeometryType.MultiPolygon));
     writer.Write((uint)multiPolygon.Geometries.Count());
     foreach (var polygon in multiPolygon.Geometries)
     {
         WkbWriter.WritePolygonContent(polygon, writer);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Writes Polygon to the output using specified writer.
 /// </summary>
 /// <param name="polygon">The Polygon to write.</param>
 /// <param name="writer">The BinaryWriter used to write geometry to the output.</param>
 private static void WritePolygon(IPolygon polygon, BinaryWriter writer)
 {
     writer.Write((uint)WkbWriter.AdjustGeometryType(polygon, WkbGeometryType.Polygon));
     WkbWriter.WritePolygonContent(polygon, writer);
 }