Esempio n. 1
0
        private void miStat_Click(object sender, EventArgs e)
        {
            MapAnalysis1 mapAnalysis = new MapAnalysis1();
            string       msg         = mapAnalysis.Statistic("continent", "SQMI", axMapControl1.Map);

            MessageBox.Show(msg);
        }
Esempio n. 2
0
        private void miSearch_Click(object sender, EventArgs e)
        {
            MapAnalysis1 mapAnalysis1 = new MapAnalysis1();

            mapAnalysis1.Buffer("cities", "NAME='Tangshan'", 1, axMapControl1.Map);
            IActiveView activeView = axMapControl1.ActiveView;

            activeView = axMapControl1.ActiveView;
            activeView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, 0, axMapControl1.Extent);
        }