我在mapControl中绘制了一个多边形,并且我有另一个地点(47.0025462722356,28.7778985977174),这是这个多边形。如果GeoPoint是否为多边形,如何创建一个返回的函数?非常感谢你
private void DrawPolygon()
{
VectorItemsLayer layer = VectorItemsLayer)this.mapControl.Layers[1];
MapItemStorage ItemStorage = (MapItemStorage)layer.Data;
var path = new MapPath();
var segment = new MapPathSegment();
segment.Points.AddRange(new GeoPoint[]
{
new GeoPoint(47.000751662342765, 28.782015716126669),
new GeoPoint(47.003499105949331, 28.779784489235578),
new GeoPoint(47.005060446204077, 28.776670571833844),
new GeoPoint(47.002626050570065, 28.774355254904908),
new GeoPoint(47.000264065129222, 28.779487220183803),
new GeoPoint(47.000751662342765, 28.782015716126669)
});
path.Segments.Add(segment);
ItemStorage.Items.Add(path);
}