Esempio n. 1
0
 private void InitConstructor()
 {
     _id = MaxID;
     MaxID++;
     _dataSource.SetGridDefinition(_gridDefinition);
     _dataSource.SetFeatureClass(this);
     _dataSource.DataSourceChanged += new EventHandler(DataSourceChanged);
     GetArgsFromDataSource();
 }
Esempio n. 2
0
 public FeatureClass(GridDefinition gridDef, MemoryGridLimiter limiter, FeatureDataSourceBase dataSource)
 {
     if (gridDef != null)
     {
         _gridDefinition = gridDef;
     }
     if (limiter != null)
     {
         _limiter = limiter;
     }
     if (dataSource == null)
     {
         throw new ArgumentNullException("构造VectorFeatureClass对象,\"DataSource\"不能为空。");
     }
     _dataSource = dataSource;
     _dataSource.SetFeatureClass(this);
     _spatialReference = _dataSource.GetSpatialReference();
     InitConstructor();
 }