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
        public override IGeometry GetGeometry()
        {
            int level    = RecursionLevelForSize(NumPoints);
            var baseLine = GetSquareBaseLine();
            var origin   = baseLine.GetCoordinate(0);
            var holes    = GetHoles(level, origin.X, origin.Y, Diameter);
            var shell    = (ILinearRing)((IPolygon)GeomFactory.ToGeometry(GetSquareExtent())).ExteriorRing;

            return(GeomFactory.CreatePolygon(shell, holes));
        }