Example #1
0
 public FeatureClass(FeatureDataSourceBase dataSource)
 {
     _gridDefinition   = new GridDefinition();
     _limiter          = new MemoryGridLimiter();
     _dataSource       = dataSource;
     _spatialReference = _dataSource.GetSpatialReference();
     InitConstructor();
 }
Example #2
0
 public FeatureClass(string filename)
 {
     _gridDefinition   = new GridDefinition();
     _limiter          = new MemoryGridLimiter();
     _dataSource       = new FileDataSource(Path.GetFileNameWithoutExtension(filename), filename);
     _spatialReference = _dataSource.GetSpatialReference();
     InitConstructor();
 }
Example #3
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();
 }