Exemplo n.º 1
0
 private static Ring[] GetInteriors(FieldBoundary fieldBoundary)
 {
     return(fieldBoundary.GetPolygons()
            .SelectMany(p => p.InteriorRings)
            .Select(Ring.FromLinearRing)
            .ToArray());
 }
Exemplo n.º 2
0
        private static Boundary CreateBoundary(FieldBoundary fieldBoundary)
        {
            var exteriors = GetExteriors(fieldBoundary);
            var interiors = GetInteriors(fieldBoundary);

            return(new Boundary(exteriors, interiors));
        }