Beispiel #1
0
        public override IGeometry GetGeometry()
        {
            int level    = RecursionLevelForSize(NumPoints);
            var baseLine = GetSquareBaseLine();
            var pts      = GetBoundary(level, baseLine.GetCoordinate(0), baseLine.Length);

            return(GeomFactory.CreatePolygon(
                       GeomFactory.CreateLinearRing(pts), null));
        }
Beispiel #2
0
        private ILinearRing CreateSquareHole(double x, double y, double width)
        {
            var pts = new[]
            {
                new Coordinate(x, y),
                new Coordinate(x + width, y),
                new Coordinate(x + width, y + width),
                new Coordinate(x, y + width),
                new Coordinate(x, y)
            };

            return(GeomFactory.CreateLinearRing(pts));
        }