<?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: How to access DateModified for a raster dataset? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-datemodified-for-a-raster-dataset/m-p/53722#M1434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander ~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After further research, I believe you are correct. I'd like to add to this discussion that I found the IDatasetNameFileStat2 to be a more efficient interface to use for this purpose (for vector data) as you only have to get a handle to the IDatasetName rather than having to open the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is unfortunate that ESRI does not manage this attribute for raster data sets in FGDB format. I found that it does work for rasters stored in a plain file system. Thanks -- Lesley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 17:58:52 GMT</pubDate>
    <dc:creator>LesleyBross</dc:creator>
    <dc:date>2015-01-05T17:58:52Z</dc:date>
    <item>
      <title>How to access DateModified for a raster dataset?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-datemodified-for-a-raster-dataset/m-p/53720#M1432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to retrieve the date modified for each feature class and raster in a file geodatabase. I have been able to accomplish this using the IDatasetFileStat interface for the feature classes using the methodology described &lt;A href="http://forums.esri.com/Thread.asp?c=93&amp;amp;f=993&amp;amp;t=255628"&gt;here&lt;/A&gt;. However, I've been unable to find a raster class that implements the IDatasetFileStat. The documentation indicates that the RasterDataset should implement this interface but when I try to cast it, I get an InvalidCastException.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pGDS = BA_OpenRasterFromGDB(gdbPath, layerRasterList(i))&amp;nbsp; 'My custom function that opens a raster and returns IGeodataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If pGDS IsNot Nothing Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRasterBandCollection = CType(pGDS, IRasterBandCollection) 'Explicit cast&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pRasterBand = pRasterBandCollection.Item(0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myTest As RasterDataset = pRasterBand.RasterDataset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDFS = CType(myTest, IDatasetFileStat)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Invalid cast exception occurs here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim intSeconds As Integer = pDFS.StatTime(esriDatasetFileStatTimeMode.esriDatasetFileStatTimeLastModification)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 02:19:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-datemodified-for-a-raster-dataset/m-p/53720#M1432</guid>
      <dc:creator>LesleyBross</dc:creator>
      <dc:date>2014-12-31T02:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to access DateModified for a raster dataset?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-datemodified-for-a-raster-dataset/m-p/53721#M1433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lesley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason, I do not believe that this attribute is possible.&amp;nbsp; If you take a look at the following screenshot I recorded, I turned on the modified property in catalog and raster data sets do not show any information for modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="NoModDate.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/47529_NoModDate.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 17:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-datemodified-for-a-raster-dataset/m-p/53721#M1433</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2015-01-05T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to access DateModified for a raster dataset?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-datemodified-for-a-raster-dataset/m-p/53722#M1434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander ~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After further research, I believe you are correct. I'd like to add to this discussion that I found the IDatasetNameFileStat2 to be a more efficient interface to use for this purpose (for vector data) as you only have to get a handle to the IDatasetName rather than having to open the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is unfortunate that ESRI does not manage this attribute for raster data sets in FGDB format. I found that it does work for rasters stored in a plain file system. Thanks -- Lesley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 17:58:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-datemodified-for-a-raster-dataset/m-p/53722#M1434</guid>
      <dc:creator>LesleyBross</dc:creator>
      <dc:date>2015-01-05T17:58:52Z</dc:date>
    </item>
  </channel>
</rss>

