Hi,
I have a query which brings back a selectionset on a SQL database in C#. I want to take that table and create a FileGDB featureclass from it in a scratchworkspace.
I am trying to create the FeatureDataSet for the Featureclass from the derived table I have retreived from SQL.
my System.Data.DataTable will not convert to IFeatureDataSet. If you have any advice it is welcome,
Andrew....
"I am trying to create the FeatureDataSet for the Featureclass from the derived table I have retreived from SQL."
I'm not sure what this means. A feature dataset is a container. You can't create one "from" a table or feature class. You simply create a new feature dataset inside the geodatabase and add the feature class to it (a feature dataset cannot contain tables). The feature dataset can be created by calling IFeatureWorkspace.CreateFeatureDataset. The feature class you're creating should be created using IFeatureDataset.CreateFeatureClass. Of course, you don't have to put a feature class inside of a feature dataset. They can be standalone. Feature datasets are mainly used to organize related data. To create the feature class as a standalone class you call IFeatureWorkspace.CreateFeatureClass.