全文预览

GIS软件工程实习报告(最短路径分析)

上传者:苏堤漫步 |  格式:doc  |  页数:25 |  大小:856KB

文档介绍
=axMapControl1.ActiveView;m_ipMap=m_ipActiveView.FocusMap;clicked=false;pGC=m_ipMapasIGraphicsContainer;ILayeripLayer=m_ipMap.get_Layer(0);IFeatureLayeripFeatureLayer=ipLayerasIFeatureLayer;IFeatureDatasetipFDS=ipFeatureLayer.FeatureClass.FeatureDataset;work(ipFDS);clicked=true;clickedcount=0;pGC.DeleteAllElements();}privatevoidSolvePath_Click(objectsender,EventArgse){axMapControl1.MousePointer=esriControlsMousePointer.esriPointerDefault;if(SolvePathGan("Weight"))//先解析路径{IPolylineipPolyResult=PathPolyLine();//最后返回最短路径clicked=false;if(ipPolyResult.IsEmpty){MessageBox.Show("没有路径可到!!");}else{IRgbColorcolor=newRgbColorClass();color.Red=255;color.Blue=64;color.Green=128;LineElementClasselement=newLineElementClass();ILineSymbollinesymbol=newSimpleLineSymbolClass();linesymbol.Color=colorasIColor;

收藏

分享

举报
下载此文档