示例#1
0
 /// <summary>
 /// Instatiates a polygon based on one extorier ring.
 /// </summary>
 /// <param name="exteriorRing">Exterior ring</param>
 public Polygon(LinearRing exteriorRing)
     : this(exteriorRing, new Collection <LinearRing>())
 {
 }
示例#2
0
 /// <summary>
 /// Instatiates a polygon based on one extorier ring and a collection of interior rings.
 /// </summary>
 /// <param name="exteriorRing">Exterior ring</param>
 /// <param name="interiorRings">Interior rings</param>
 public Polygon(LinearRing exteriorRing, IList <LinearRing> interiorRings)
 {
     _ExteriorRing  = exteriorRing;
     _InteriorRings = interiorRings ?? new Collection <LinearRing>();
 }