Exemple #1
0
 public void LinearRingTests()
 {
     var linearRing = new LinearRing(new[] { new Coordinate(0, 0), new Coordinate(1, 0), new Coordinate(0, 2) });
     AssertThatIndexPropertyIsGenerated(linearRing);
     AssertTrue(linearRing, SpatialRelation.Within, new Circle(0, 0, 600000));
     AssertFalse(linearRing, SpatialRelation.Within, new Circle(0, 160, 600000));
 }
Exemple #2
0
 public Polygon(LinearRing shell, params LinearRing[] holes)
 {
     Shell = shell;
     Holes = new List<LinearRing>(holes ?? new LinearRing[0]);
 }
Exemple #3
0
 private void AppendLinearRing(StringBuilder builder, LinearRing linearRing)
 {
     builder.Append("LINEARRING");
     AppendDimensions(builder, linearRing);
     builder.Append(" ");
     AppendLineStringInner(builder, linearRing.Coordinates);
 }
Exemple #4
0
 protected bool Equals(LinearRing other)
 {
     return Equals(Coordinates, other.Coordinates);
 }
Exemple #5
0
 public Polygon(LinearRing shell, params LinearRing[] holes) : this(shell, (IEnumerable <LinearRing>)holes)
 {
 }
Exemple #6
0
 public Polygon(LinearRing shell, IEnumerable <LinearRing> holes)
 {
     Shell = shell;
     Holes = new SpatialReadOnlyCollection <LinearRing>(holes ?? new LinearRing[0]);
 }
Exemple #7
0
 public Polygon(LinearRing shell, params LinearRing[] holes)
     : this(shell, (IEnumerable<LinearRing>)holes)
 {
 }
Exemple #8
0
 public Polygon(LinearRing shell, IEnumerable<LinearRing> holes)
 {
     Shell = shell;
     Holes = new SpatialReadOnlyCollection<LinearRing>(holes ?? new LinearRing[0]);
 }
Exemple #9
0
 public Triangle(LinearRing shell, IEnumerable<LinearRing> holes)
     : base(shell, holes)
 {
     if (!shell.IsClosed && shell.Coordinates.Count != 4)
         throw new ArgumentException("The Coordinate Sequence is not valid for a triangle.");
 }
Exemple #10
0
 public Triangle(LinearRing shell, params LinearRing[] holes)
     : this(shell, (IEnumerable<LinearRing>)holes)
 {
 }
Exemple #11
0
 public Triangle(LinearRing shell, params LinearRing[] holes)
     : this(shell, (IEnumerable <LinearRing>)holes)
 {
 }