示例#1
0
        public static List <IPoint> GetStudentList()
        {
            List <IPoint>  pointList      = new List <IPoint>();
            IFeatureLayer  pFeatureLayer  = AeUtils.GetFeatureLayerByName("Students");
            IFeatureCursor pFeatureCursor = pFeatureLayer.FeatureClass.Search(null, false);
            IFeature       pFeature       = pFeatureCursor.NextFeature();

            while (pFeature != null)
            {
                IPoint pPoint = pFeature.Shape as IPoint;
                pPoint.Project(m_pMapC2.SpatialReference);
                pointList.Add(pPoint);
                pFeature = pFeatureCursor.NextFeature();
            }
            return(pointList);
        }
示例#2
0
 private void btn_ClearAnalysis_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     AeUtils.DeleteAllMapElement();
     m_pMapC2.Map.DeleteLayer(AeUtils.GetFeatureLayerByName("tyson"));
 }