<?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 Exporting ArcGIS plugin data source to Shape in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/exporting-arcgis-plugin-data-source-to-shape/m-p/302008#M7839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have implemented a plug-in data source for ArcGIS. In my case, the format read by the plug-in may contain point, line and polygon features within the same file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my implementation the data file read by the plugin is a dataset which may contain up to three feature classes (point, line, poly).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap I can sucessfully browse to my data sources and add feature classes to the map. If I then open the &lt;/SPAN&gt;&lt;STRONG&gt;ArcToolbox-&amp;gt;Conversion Tools-&amp;gt;To Shapefile-&amp;gt;Feature Class To Shape&lt;/STRONG&gt;&lt;SPAN&gt;tool I can see the added feature classes in the &lt;/SPAN&gt;&lt;STRONG&gt;Input Features&lt;/STRONG&gt;&lt;SPAN&gt; pulldown menu and add them. Using this method I can sucessfully export the feature class to a Shape file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, in ArcCatalog I can browse to the feature classes contained in my custom files or I can enter a path into the &lt;/SPAN&gt;&lt;STRONG&gt;Location:&lt;/STRONG&gt;&lt;SPAN&gt;box in ArcCatalog for example: &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata\testPT\testPT_PT&lt;/STRONG&gt;&lt;SPAN&gt; where &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata &lt;/STRONG&gt;&lt;SPAN&gt;is the location of my data file, &lt;/SPAN&gt;&lt;STRONG&gt;testPT &lt;/STRONG&gt;&lt;SPAN&gt;is the root name of my data file (less extenstion) and &lt;/SPAN&gt;&lt;STRONG&gt;testPT_PT &lt;/STRONG&gt;&lt;SPAN&gt;is the name of the feature class within the file. Doing this will sucessfully browse to and open my file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trouble coumes when I attempt to use the &lt;/SPAN&gt;&lt;STRONG&gt;ArcToolbox-&amp;gt;Conversion Tools-&amp;gt;To Shapefile-&amp;gt;Feature Class To Shape &lt;/STRONG&gt;&lt;SPAN&gt;tool and enter the full path to my feature class &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata\testPT\testPT_PT &lt;/STRONG&gt;&lt;SPAN&gt;directly into the &lt;/SPAN&gt;&lt;STRONG&gt;Input Features&lt;/STRONG&gt;&lt;SPAN&gt; box rather than first adding the feature class to a map and then selecting it via the &lt;/SPAN&gt;&lt;STRONG&gt;Input Features &lt;/STRONG&gt;&lt;SPAN&gt;dialog. I am immediately greeted with 000732 dataset does not exist or is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that I have traced the probem to the call made by ArcGIS to the ContainsWorkspace() that I have implemented in my custom workspace factory. My ContainsWorkspace() is being called and the parentDirectory being passed to me in the above example is &lt;/SPAN&gt;&lt;STRONG&gt;f:\arct&lt;/STRONG&gt;&lt;SPAN&gt;est when I expect to be called with &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata&lt;/STRONG&gt;&lt;SPAN&gt;. As it is I am being called to indicate whether &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest &lt;/STRONG&gt;&lt;SPAN&gt;contains a workspace which it does not, &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata &lt;/STRONG&gt;&lt;SPAN&gt;does. ContainsWorkspace() is never called with &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata &lt;/STRONG&gt;&lt;SPAN&gt;and the Export To Shape tool immediately indicates that the specified feature class is invalid. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, if I enter&lt;/SPAN&gt;&lt;STRONG&gt; f:\arctest\plugindata\testPT\testPT_PT &lt;/STRONG&gt;&lt;SPAN&gt;into the location box in ArcCatalog I am immediately taken to the correct featureclass, it is only the Shape Export dialog that will not accept this path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am fairly new to ArcGIS Engine development and this is my first data source plugin so I I have not clearly explained the situation I apologize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give me some pointers on where to look for my failure?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bruce Jones&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Feb 2011 21:45:48 GMT</pubDate>
    <dc:creator>BruceJones</dc:creator>
    <dc:date>2011-02-16T21:45:48Z</dc:date>
    <item>
      <title>Exporting ArcGIS plugin data source to Shape</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/exporting-arcgis-plugin-data-source-to-shape/m-p/302008#M7839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have implemented a plug-in data source for ArcGIS. In my case, the format read by the plug-in may contain point, line and polygon features within the same file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my implementation the data file read by the plugin is a dataset which may contain up to three feature classes (point, line, poly).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap I can sucessfully browse to my data sources and add feature classes to the map. If I then open the &lt;/SPAN&gt;&lt;STRONG&gt;ArcToolbox-&amp;gt;Conversion Tools-&amp;gt;To Shapefile-&amp;gt;Feature Class To Shape&lt;/STRONG&gt;&lt;SPAN&gt;tool I can see the added feature classes in the &lt;/SPAN&gt;&lt;STRONG&gt;Input Features&lt;/STRONG&gt;&lt;SPAN&gt; pulldown menu and add them. Using this method I can sucessfully export the feature class to a Shape file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, in ArcCatalog I can browse to the feature classes contained in my custom files or I can enter a path into the &lt;/SPAN&gt;&lt;STRONG&gt;Location:&lt;/STRONG&gt;&lt;SPAN&gt;box in ArcCatalog for example: &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata\testPT\testPT_PT&lt;/STRONG&gt;&lt;SPAN&gt; where &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata &lt;/STRONG&gt;&lt;SPAN&gt;is the location of my data file, &lt;/SPAN&gt;&lt;STRONG&gt;testPT &lt;/STRONG&gt;&lt;SPAN&gt;is the root name of my data file (less extenstion) and &lt;/SPAN&gt;&lt;STRONG&gt;testPT_PT &lt;/STRONG&gt;&lt;SPAN&gt;is the name of the feature class within the file. Doing this will sucessfully browse to and open my file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The trouble coumes when I attempt to use the &lt;/SPAN&gt;&lt;STRONG&gt;ArcToolbox-&amp;gt;Conversion Tools-&amp;gt;To Shapefile-&amp;gt;Feature Class To Shape &lt;/STRONG&gt;&lt;SPAN&gt;tool and enter the full path to my feature class &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata\testPT\testPT_PT &lt;/STRONG&gt;&lt;SPAN&gt;directly into the &lt;/SPAN&gt;&lt;STRONG&gt;Input Features&lt;/STRONG&gt;&lt;SPAN&gt; box rather than first adding the feature class to a map and then selecting it via the &lt;/SPAN&gt;&lt;STRONG&gt;Input Features &lt;/STRONG&gt;&lt;SPAN&gt;dialog. I am immediately greeted with 000732 dataset does not exist or is not supported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe that I have traced the probem to the call made by ArcGIS to the ContainsWorkspace() that I have implemented in my custom workspace factory. My ContainsWorkspace() is being called and the parentDirectory being passed to me in the above example is &lt;/SPAN&gt;&lt;STRONG&gt;f:\arct&lt;/STRONG&gt;&lt;SPAN&gt;est when I expect to be called with &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata&lt;/STRONG&gt;&lt;SPAN&gt;. As it is I am being called to indicate whether &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest &lt;/STRONG&gt;&lt;SPAN&gt;contains a workspace which it does not, &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata &lt;/STRONG&gt;&lt;SPAN&gt;does. ContainsWorkspace() is never called with &lt;/SPAN&gt;&lt;STRONG&gt;f:\arctest\plugindata &lt;/STRONG&gt;&lt;SPAN&gt;and the Export To Shape tool immediately indicates that the specified feature class is invalid. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, if I enter&lt;/SPAN&gt;&lt;STRONG&gt; f:\arctest\plugindata\testPT\testPT_PT &lt;/STRONG&gt;&lt;SPAN&gt;into the location box in ArcCatalog I am immediately taken to the correct featureclass, it is only the Shape Export dialog that will not accept this path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am fairly new to ArcGIS Engine development and this is my first data source plugin so I I have not clearly explained the situation I apologize.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give me some pointers on where to look for my failure?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bruce Jones&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 21:45:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/exporting-arcgis-plugin-data-source-to-shape/m-p/302008#M7839</guid>
      <dc:creator>BruceJones</dc:creator>
      <dc:date>2011-02-16T21:45:48Z</dc:date>
    </item>
  </channel>
</rss>

