<?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: replaceDataSource gives unexpected error on coverage data source in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185148#M2015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I could reproduce the issue.&amp;nbsp;&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate you checking it out. If you can post or send me the NIM# I'll make sure I get a "vote" in on getting it fixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An interface approach that makes sense to me and not break what's there already would be to allow the data source to include feature dataset "in-gdb path"&amp;nbsp; in the argument, i.e. "covername/polygon". If you just provide a feature class name, it would continue to do what it does now and look through all feature classes until it found a match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems this problem was created back in 1999 when the ArcGIS developers designed how coverage feature classes are represented in ArcGIS paths. The form "covername\covername_polygon" is more verbose, but would have preserved unique feature class names in the arcinfo workspace.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 17:46:14 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-04-12T17:46:14Z</dc:date>
    <item>
      <title>replaceDataSource gives unexpected error on coverage data source</title>
      <link>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185146#M2013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is an arcpy.mapping question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having getting &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s30000004p000000" rel="nofollow" target="_blank"&gt;replaceDataSource&lt;/A&gt;&lt;SPAN&gt; to fix paths to coverages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;print ds print "%s, %s, %s" % tuple([ENV.workspace, covName, covNameNew]) lyr.replaceDataSource(ENV.workspace, "ARCINFO_WORKSPACE", covNameNew)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The coverage abbot_pop does not exist, but cou_pop does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This prints:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;E:\tools\arcgis\atool\arc\sample\samptest\abbot_pop\point&lt;BR /&gt;e:\tools\arcgis\atool\arc\sample\samptest, abbot_pop, cou_pop&lt;BR /&gt;Layer: Unexpected error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;cou_pop/point&lt;/SPAN&gt;&lt;SPAN&gt; (it's a point coverage) and that didn't work either. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 22:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185146#M2013</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-04-11T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource gives unexpected error on coverage data source</title>
      <link>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185147#M2014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could reproduce the issue.&amp;nbsp; The problem is that the lyr.datasetName is, for example, "polygon" and NOT "coverageName\polygon" and lyr.workspacePath does NOT include the coverage name so the missing piece to changing the dataSource is the literal coverage name. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried an intermediate step.&amp;nbsp; I&amp;nbsp; converted the "to" coverage to a tempory shapefile and successfully redirected the "from" coverage dataSource to the shapefile but I was still unable to go from shapefile back to the "to" coverage.&amp;nbsp; When I specify the literal coverage name as the "dataset_name", I don't get an error but nothing happens.&amp;nbsp; If I enter "polygon" as the dataset_name it remaps to the first coverage in the workspace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only work around I see is to change the workspace type.&amp;nbsp; I will enter a bug into our system and try to address this for the next SP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the inconvenience,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 16:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185147#M2014</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-04-12T16:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource gives unexpected error on coverage data source</title>
      <link>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185148#M2015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I could reproduce the issue.&amp;nbsp;&amp;nbsp; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate you checking it out. If you can post or send me the NIM# I'll make sure I get a "vote" in on getting it fixed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An interface approach that makes sense to me and not break what's there already would be to allow the data source to include feature dataset "in-gdb path"&amp;nbsp; in the argument, i.e. "covername/polygon". If you just provide a feature class name, it would continue to do what it does now and look through all feature classes until it found a match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems this problem was created back in 1999 when the ArcGIS developers designed how coverage feature classes are represented in ArcGIS paths. The form "covername\covername_polygon" is more verbose, but would have preserved unique feature class names in the arcinfo workspace.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185148#M2015</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-04-12T17:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: replaceDataSource gives unexpected error on coverage data source</title>
      <link>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185149#M2016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis, here is the number you asked for:&amp;nbsp; NIM080006.&amp;nbsp; It is too late for 10.0 SP5 and 10.1 final.&amp;nbsp; The current plan is for 10.1 SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 13:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/replacedatasource-gives-unexpected-error-on/m-p/185149#M2016</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-04-13T13:59:55Z</dc:date>
    </item>
  </channel>
</rss>

