public static UIBezierPath ToUIKit(this Polygon polygon,IViewport viewport) { var group = new UIBezierPath(); group.UsesEvenOddFillRule = true; group.AppendPath(ToUIKit(polygon.ExteriorRing, viewport)); group.AppendPath(ToUIKit(polygon.InteriorRings, viewport)); return group; }
public static UIBezierPath ToUIKit(this IEnumerable<LinearRing> linearRings, IViewport viewport) { var pathGeometry = new UIBezierPath(); foreach (var linearRing in linearRings) pathGeometry.AppendPath(CreatePathFigure(linearRing, viewport)); return pathGeometry; }
public static UIBezierPath ToUIKit(this MultiLineString multiLineString, IViewport viewport) { var group = new UIBezierPath(); foreach (LineString lineString in multiLineString) group.AppendPath(ToUIKit(lineString, viewport)); return group; }
public static UIBezierPath ToUIKit(this MultiPolygon geometry, IViewport viewport) { var group = new UIBezierPath(); foreach(var polygon in geometry.Polygons) group.AppendPath(ToUIKit(polygon, viewport)); return group; }
public static UIBezierPath ToUIKit(this LinearRing linearRing, IViewport viewport) { var pathGeometry = new UIBezierPath(); pathGeometry.AppendPath(CreatePathFigure(linearRing, viewport)); return pathGeometry; }