laptop and a wrench

Bug

IDataLayer fails in changing login info for a RasterLayer.

Zuletzt veröffentlicht: February 14, 2015 No Product Found
Bug-ID-Nummer NIM058287
EingereichtJune 14, 2010
Zuletzt geändertApril 2, 2025
Gilt fürNo Product Found
Gefunden in Version9.3.1
ProgrammspracheC#
StatusWill Not Be Addressed

Zusätzliche Informationen

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; }}

Schritte zur Reproduzierung

Bug-ID: NIM058287

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln