laptop and a wrench

Error

IDataLayer fails in changing login info for a RasterLayer.

Última publicación: February 14, 2015 No Product Found
Número de ID del error NIM058287
EnviadoJune 14, 2010
Última modificaciónApril 2, 2025
Relacionado conNo Product Found
Versión encontrada9.3.1
Lenguaje del programaC#
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

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

Pasos para reproducir

ID del error: NIM058287

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga