private static Ring[] GetInteriors(FieldBoundary fieldBoundary) { return(fieldBoundary.GetPolygons() .SelectMany(p => p.InteriorRings) .Select(Ring.FromLinearRing) .ToArray()); }
private static Boundary CreateBoundary(FieldBoundary fieldBoundary) { var exteriors = GetExteriors(fieldBoundary); var interiors = GetInteriors(fieldBoundary); return(new Boundary(exteriors, interiors)); }