陌生的不再陌生

导航

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();
}

posted on 2021-11-30 18:27  陌生的不再陌生  阅读(274)  评论(1编辑  收藏  举报