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)); }
public Polygon(LinearRing shell, params LinearRing[] holes) { Shell = shell; Holes = new List<LinearRing>(holes ?? new LinearRing[0]); }
private void AppendLinearRing(StringBuilder builder, LinearRing linearRing) { builder.Append("LINEARRING"); AppendDimensions(builder, linearRing); builder.Append(" "); AppendLineStringInner(builder, linearRing.Coordinates); }
protected bool Equals(LinearRing other) { return Equals(Coordinates, other.Coordinates); }
public Polygon(LinearRing shell, params LinearRing[] holes) : this(shell, (IEnumerable <LinearRing>)holes) { }
public Polygon(LinearRing shell, IEnumerable <LinearRing> holes) { Shell = shell; Holes = new SpatialReadOnlyCollection <LinearRing>(holes ?? new LinearRing[0]); }
public Polygon(LinearRing shell, params LinearRing[] holes) : this(shell, (IEnumerable<LinearRing>)holes) { }
public Polygon(LinearRing shell, IEnumerable<LinearRing> holes) { Shell = shell; Holes = new SpatialReadOnlyCollection<LinearRing>(holes ?? new LinearRing[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."); }
public Triangle(LinearRing shell, params LinearRing[] holes) : this(shell, (IEnumerable<LinearRing>)holes) { }
public Triangle(LinearRing shell, params LinearRing[] holes) : this(shell, (IEnumerable <LinearRing>)holes) { }