Select to view content in your preferred language

Loading a RasterLayer with NAD_1983_Alaska_Albers ArcGIS Maps SDK: LayerViewState Error: RasterLayer Internal Error

55
0
yesterday
Labels (3)
YasunariTosa1
Emerging Contributor

The file (.tif and .xm) from this USGS site and download n10_susc.zip (574 MB) from Attached Files list:

https://www.sciencebase.gov/catalog/item/65ccea5bd34ef4b119cb3bac

Use n10_ak.tif and n10_ak.tif.xml.   The other files n10_conus.tif and n10_conus.tif.xml works fine.

RasterLayer rl = new RasterLayer(filePath); await rl.LoadAsync();esriMap.Map.OperationalLayers.Add(rl);

// rl.SpatialReference = null even though  n10_ak.tif.xml specifies  "NAD_1983_Alaska_Albers" within Esri tag.

Visual Studio 2022 v.17.14.5 Output window has this  (I could not catch with try/catch)

ArcGIS Maps SDK: LayerViewState Error: RasterLayer
Internal error.

0 Kudos
0 Replies