public override void draw(Graphics graphics) { Point[] points = GISSpatial.Vertexes2Points(AllVertexes); if (points.Length == 1) { return; //只有一个点直接跳出 } graphics.DrawLines(new Pen(Color.Black, 1), points); }
public override void draw(Graphics graphics) { Point[] points = GISSpatial.Vertexes2Points(AllVertexes); if (points.Length < 3) { return; //只有一个点直接跳出 } graphics.FillPolygon(new SolidBrush(Color.Pink), points); graphics.DrawPolygon(new Pen(Color.Black, 2), points); }
public GISAttribute attributepart; //空间与属性信息 public GISFeature(GISSpatial spatial, GISAttribute attribute) //构造函数传入空间与属性信息 { spatialpart = spatial; attributepart = attribute; }