<?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 Deleting a FeatureClass...or an Alternative Solution to my Situation in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403423#M10778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, first let me describe my situation as there may be a better way of handling it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with ArcEngine 9.3.1 with C#. I have a search form that allows the user to query for data in any field and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;display the results. I have a second form that can be displayed at that point to display a colored layer over the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to be able to color in the results with different colors based on sub queries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought of using a uniquevaluerenderer for this as it would give me the layer layout that I need (color coded categories), but unfortunately with it needing unique values, I can't use wildcards to grab multiple polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided then that I would create my own featureclass on-the-fly and populate it with my results and adding a field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to indicate what records belonged to what color group, that way I could use the uniquevaluerenderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I query for all parcel numbers that start 074&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With those results, I would like to color code them in the following way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;074A = Red&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;074B = Yellow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;074C = Green&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dug around and finally figured out how to add a featureclass and can populate it the way I want, but now the problem is...I can't delete it. I really don't want to leave my featureclass in the geodatabase after the query results have been displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to delete the featureclass (using DeleteByName() from IFeatureWorkspaceManage), I get the error message&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The application is not licensed to perform this operation". Why would I be licensed to create but not to delete?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help on this would be much appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Apr 2010 12:54:00 GMT</pubDate>
    <dc:creator>NickClayton</dc:creator>
    <dc:date>2010-04-29T12:54:00Z</dc:date>
    <item>
      <title>Deleting a FeatureClass...or an Alternative Solution to my Situation</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403423#M10778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all, first let me describe my situation as there may be a better way of handling it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with ArcEngine 9.3.1 with C#. I have a search form that allows the user to query for data in any field and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;display the results. I have a second form that can be displayed at that point to display a colored layer over the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to be able to color in the results with different colors based on sub queries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought of using a uniquevaluerenderer for this as it would give me the layer layout that I need (color coded categories), but unfortunately with it needing unique values, I can't use wildcards to grab multiple polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided then that I would create my own featureclass on-the-fly and populate it with my results and adding a field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to indicate what records belonged to what color group, that way I could use the uniquevaluerenderer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I query for all parcel numbers that start 074&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With those results, I would like to color code them in the following way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;074A = Red&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;074B = Yellow&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;074C = Green&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dug around and finally figured out how to add a featureclass and can populate it the way I want, but now the problem is...I can't delete it. I really don't want to leave my featureclass in the geodatabase after the query results have been displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to delete the featureclass (using DeleteByName() from IFeatureWorkspaceManage), I get the error message&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"The application is not licensed to perform this operation". Why would I be licensed to create but not to delete?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help on this would be much appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 12:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403423#M10778</guid>
      <dc:creator>NickClayton</dc:creator>
      <dc:date>2010-04-29T12:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a FeatureClass...or an Alternative Solution to my Situation</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403424#M10779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try setting the license level to ArcEditor or Above.&amp;nbsp; See the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/2efb9e94-81b7-4088-af80-602ca92a2bb1.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/2efb9e94-81b7-4088-af80-602ca92a2bb1.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 09:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403424#M10779</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2010-04-30T09:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a FeatureClass...or an Alternative Solution to my Situation</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403425#M10780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Its a bit of a long shot but make sure you have released any ArcObjects (COM) to the Feature Class you are trying to delete. So use the ESRI.ArcGIS.ADF.ComReleaser on any classes like FetureClass, FeatureLayer, or FeatureCursor. If there is still a reference to the FeatureClass I do not think it can be deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, another alternative might be to use an InMemoryWorkSpaceFactory. This should be created when your application starts and it gets destroyed when your application shuts down. Just an idea to try.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 15:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403425#M10780</guid>
      <dc:creator>EricPaitz</dc:creator>
      <dc:date>2010-04-30T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a FeatureClass...or an Alternative Solution to my Situation</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403426#M10781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The InMemoryWorkSpaceFactory was exactly what I needed. Thank you for the responses, it has helped me move forward and I have some new tricks at my disposal &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 May 2010 12:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/deleting-a-featureclass-or-an-alternative-solution/m-p/403426#M10781</guid>
      <dc:creator>NickClayton</dc:creator>
      <dc:date>2010-05-03T12:04:39Z</dc:date>
    </item>
  </channel>
</rss>

