<?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 How to get/set path to unmanaged raster dataset? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-get-set-path-to-unmanaged-raster-dataset/m-p/626364#M35410</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I access the path to the image files in an unmanaged raster catalog? And how can I change it if the files have been moved?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm aware of the ExportRasterCatalogPaths and RepairRasterCatalogPaths in ESRI.ArcGIS.DataManagementTools, but it seems like a lot of jumping through hoops, and documentation of GP tools leaves something to be desired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had hoped to do it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;string GetPath(IRasterValue rv)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp; IDatasetName dsn = (rv.RasterDatasetName as IDatasetName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspaceName wsn = dsn.WorkspaceName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return wsn.PathName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But that just gives me the path of the enclosing geodatabase. Looking at the files in the GDB folder, I see things like *.CatItemsByPhysicalName.atx, which I'm guessing contains the information I'm after. Is there a way to get inside these?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working with ArcGIS Engine 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2010 11:32:35 GMT</pubDate>
    <dc:creator>SteveStanton</dc:creator>
    <dc:date>2010-12-10T11:32:35Z</dc:date>
    <item>
      <title>How to get/set path to unmanaged raster dataset?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-get-set-path-to-unmanaged-raster-dataset/m-p/626364#M35410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do I access the path to the image files in an unmanaged raster catalog? And how can I change it if the files have been moved?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm aware of the ExportRasterCatalogPaths and RepairRasterCatalogPaths in ESRI.ArcGIS.DataManagementTools, but it seems like a lot of jumping through hoops, and documentation of GP tools leaves something to be desired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had hoped to do it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;string GetPath(IRasterValue rv)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp; IDatasetName dsn = (rv.RasterDatasetName as IDatasetName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspaceName wsn = dsn.WorkspaceName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return wsn.PathName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But that just gives me the path of the enclosing geodatabase. Looking at the files in the GDB folder, I see things like *.CatItemsByPhysicalName.atx, which I'm guessing contains the information I'm after. Is there a way to get inside these?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working with ArcGIS Engine 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2010 11:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-get-set-path-to-unmanaged-raster-dataset/m-p/626364#M35410</guid>
      <dc:creator>SteveStanton</dc:creator>
      <dc:date>2010-12-10T11:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get/set path to unmanaged raster dataset?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-get-set-path-to-unmanaged-raster-dataset/m-p/626365#M35411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes these Geoprocessing tools are the ones to use to change the paths. I am sure you can do something similar through code since the paths have to be stored in the catalog table somewhere. I don't know exactly how to access these fields in the table or how to edit them through code though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 20:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-get-set-path-to-unmanaged-raster-dataset/m-p/626365#M35411</guid>
      <dc:creator>RobertBerger</dc:creator>
      <dc:date>2010-12-13T20:38:33Z</dc:date>
    </item>
  </channel>
</rss>

