DotSpatial 节点编辑

PolygonLayer pLayerEdit = null;
FeatureSet fsEdit = null;
//编辑节点
private void toolStripButton63_Click(object sender, EventArgs e)
{

//获取图层
pLayerEdit = Lzq_LayerManager.getLayerByName(layerNamePolygon, mapMain) as MapPolygonLayer;

//要素集
fsEdit = pLayerEdit.DataSet as FeatureSet;
mapMain.Cursor = Cursors.Cross;
DotSpatial.Plugins.ShapeEditor.MoveVertexFunction moveVertexFunction = new MoveVertexFunction(mapMain);
moveVertexFunction.Layer = pLayerEdit;
mapMain.ActivateMapFunction(moveVertexFunction);
}

//保存编辑
private void toolStripButton64_Click(object sender, EventArgs e)
{
fsEdit.Save();
}

原文地址:https://www.cnblogs.com/kogame/p/15625489.html