laptop and a wrench

Bug

IDataLayer fails in changing login info for a RasterLayer.

Last Published: February 14, 2015 No Product Found
Bug ID Number NIM058287
SubmittedJune 14, 2010
Last ModifiedApril 2, 2025
Applies toNo Product Found
Version found9.3.1
Program languageC#
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

Instead of changing the connection parameters in IDataLayer.DatasourceName for changing the workspace, the new raster / raster catalog is opened from the new Workspace with IRasterWorkspaceEx.OpenRasterDataset(<a href="http://oldDatasetName.Name" target="_blank">oldDatasetName.Name</a>) or IRasterWorkspaceEx.OpenRasterCatalog(<a href="http://oldDatasetName.Name" target="_blank">oldDatasetName.Name</a>). The return value is used to set IDataLayer.DatasourceName.private static void SpecialTreatmentForRasterData(ref IDatasetName datasetName){ IRasterWorkspaceEx newWorkspaceAsRasterWorkspaceEx = ((IName)datasetName.WorkspaceName).Open() as IRasterWorkspaceEx; if (newWorkspaceAsRasterWorkspaceEx != null && (datasetName.Type == esriDatasetType.esriDTRasterDataset || datasetName.Type == esriDatasetType.esriDTRasterCatalog)) { IDataset newDataset = datasetName.Type == esriDatasetType.esriDTRasterDataset ? (IDataset)newWorkspaceAsRasterWorkspaceEx.OpenRasterDataset(<a href="http://datasetName.Name" target="_blank">datasetName.Name</a>) : (IDataset)newWorkspaceAsRasterWorkspaceEx.OpenRasterCatalog(<a href="http://datasetName.Name" target="_blank">datasetName.Name</a>); datasetName = (IDatasetName)newDataset.FullName; }}

Steps to Reproduce

Bug ID: NIM058287

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options