<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data Table to IFeatureDataSet? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181451#M4706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"I am trying to create the FeatureDataSet for the Featureclass from the derived table I have retreived from SQL."&lt;BR /&gt; &lt;BR /&gt;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.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, found that out quickly this morning.&amp;nbsp;&amp;nbsp; Your explanation is better than I could've given though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to take a discreet data set from a larger SDE database and programatically impose a selection (DefinitionQuery) on the data inside and put that information into a FileGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can connect to the DB which I queried to create that original table, and create a SDE FeatureClass, and add it to the map with a DefinitionQuery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I need to export that discreet dataset to a FileGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Feb 2011 14:10:31 GMT</pubDate>
    <dc:creator>AndrewDavis</dc:creator>
    <dc:date>2011-02-02T14:10:31Z</dc:date>
    <item>
      <title>Data Table to IFeatureDataSet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181447#M4702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a query which brings back a selectionset on a SQL database in C#.&amp;nbsp; I want to take that table and create a FileGDB featureclass from it in a scratchworkspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create the FeatureDataSet for the Featureclass from the derived table I have retreived from SQL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my System.Data.DataTable will not convert to IFeatureDataSet.&amp;nbsp; If you have any advice it is welcome, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrew....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 15:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181447#M4702</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2011-02-01T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data Table to IFeatureDataSet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181448#M4703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, &lt;BR /&gt; &lt;BR /&gt;I have a query which brings back a selectionset on a SQL database in C#.&amp;nbsp; I want to take that table and create a FileGDB featureclass from it in a scratchworkspace.&lt;BR /&gt; &lt;BR /&gt;I am trying to create the FeatureDataSet for the Featureclass from the derived table I have retreived from SQL.&lt;BR /&gt; &lt;BR /&gt;my System.Data.DataTable will not convert to IFeatureDataSet.&amp;nbsp; If you have any advice it is welcome, &lt;BR /&gt; &lt;BR /&gt;Andrew....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know well, but if you don't mind my comment...&amp;nbsp; Are you trying to get IFeatureDataset directly from the table?&amp;nbsp; Probably, I think that you need first get IFeatureClass from the table by using IFeatueDataConverter, and then you get IFeatureDataset from the IFeatureClass.&amp;nbsp; Did you try this way already?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kyung&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 16:15:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181448#M4703</guid>
      <dc:creator>KyungKim</dc:creator>
      <dc:date>2011-02-01T16:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data Table to IFeatureDataSet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181449#M4704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks..&amp;nbsp; I will try that out this morning...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 09:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181449#M4704</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2011-02-02T09:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Table to IFeatureDataSet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181450#M4705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"I am trying to create the FeatureDataSet for the Featureclass from the derived table I have retreived from SQL."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what this means.&amp;nbsp; A feature dataset is a container.&amp;nbsp; You can't create one "from" a table or feature class.&amp;nbsp; You simply create a new feature dataset inside the geodatabase and add the feature class to it (a feature dataset cannot contain tables).&amp;nbsp; The feature dataset can be created by calling IFeatureWorkspace.CreateFeatureDataset.&amp;nbsp; The feature class you're creating should be created using IFeatureDataset.CreateFeatureClass.&amp;nbsp; Of course, you don't have to put a feature class inside of a feature dataset.&amp;nbsp; They can be standalone.&amp;nbsp; Feature datasets are mainly used to organize related data.&amp;nbsp; To create the feature class as a standalone class you call IFeatureWorkspace.CreateFeatureClass.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 12:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181450#M4705</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-02-02T12:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Table to IFeatureDataSet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181451#M4706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"I am trying to create the FeatureDataSet for the Featureclass from the derived table I have retreived from SQL."&lt;BR /&gt; &lt;BR /&gt;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.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, found that out quickly this morning.&amp;nbsp;&amp;nbsp; Your explanation is better than I could've given though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to take a discreet data set from a larger SDE database and programatically impose a selection (DefinitionQuery) on the data inside and put that information into a FileGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can connect to the DB which I queried to create that original table, and create a SDE FeatureClass, and add it to the map with a DefinitionQuery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I need to export that discreet dataset to a FileGDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 14:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181451#M4706</guid>
      <dc:creator>AndrewDavis</dc:creator>
      <dc:date>2011-02-02T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data Table to IFeatureDataSet?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181452#M4707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Probably the easiest way to do this would be to use the feature class to feature class geoprocessing tool.&amp;nbsp; You can call this tool through code using the objects in the Geoprocessing library.&amp;nbsp; This tool will allow you to copy an entire feature class or apply a query filter to copy only a subset.&amp;nbsp; I believe you'll need to create the target feature class prior to calling the tool but I'm not sure on that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 15:56:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/data-table-to-ifeaturedataset/m-p/181452#M4707</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2011-02-02T15:56:49Z</dc:date>
    </item>
  </channel>
</rss>

