private void LoadSpatialFeatureClasses()
 {
     using (ICatalogEntityClass c = new CatalogEntityClassFeatureClass(_connString))
     {
         ICatalogEntity[] objs = c.Query("datasetid='" + Id + "'");
         _spatialFeatureClasses = objs;
     }
 }
示例#2
0
 private void Load()
 {
     try
     {
         using (ICatalogEntityClass cec = new CatalogEntityClassFeatureDataset(_connectionString))
         {
             _featureDatasets = cec.Query(new SpatialFeatureDataset());
         }
         using (ICatalogEntityClass cec = new CatalogEntityClassFeatureClass(_connectionString))
         {
             _featureClasses = cec.Query("length(datasetid)=0");
         }
         _isLoaded = true;
     }
     catch (Exception ex)
     {
         _isLoaded = false;
         MsgBox.ShowError(ex.Message);
     }
 }