Select to view content in your preferred language

RasterLayer in alaska-albers (wkid=3387) cannot be displayed in BaseLayer in web mercator (wkid=3857)

192
2
2 weeks ago
Labels (3)
YasunariTosa1
Emerging Contributor

WPF app with MapView BaseLayer created from the tiled service, "https://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer".  I created RasterLayer from USGS tif file and associated xml file with wkid=3387 and put it into OperationalLayers.  I have another USGS tif file which has embedded spatial refernce as "Albers_Conical_Equal_Area" (Virginia) and has no problem showing in Map Operational Layer.  Both of them have SpatialReference.  The only difference is the one which cannot be shown as wkid set and the one which shows up has no wkid but wktext present with "Albers_Conical_Equal_Area".  I thought that Operational Layer in a different projection is mapped to be shown in the BaseLayer projection.  ArcGISPro v3.4 has no problem showing both Raster Layers.   Is there a way to show the alaska albers projection map to be shown in the web mercator?  We are using ArcGISRuntime 200.8.0.   I cannot submit the files (too big and .tif nor .xml are not allowed).

0 Kudos
2 Replies
Nicholas-Furness
Esri Regular Contributor

I'm not an expert in this, but I think the file that does NOT have embedded SR will need both the XML auxiliary file AND a world file (which positions/scales the image). See this gist for an example, including some links at the bottom that talk some more about aux and world files.

0 Kudos
YasunariTosa1
Emerging Contributor

The two tiff files which behaves differently.

One which does not produce spatial Reference.  I used ArcGISPro to load the tif and exported the relevant map to Geotiff format which produced .tif, .tfw, and .tif.aux.xml.   I created RasterLayer and put it in OperationalLayers and my WPF app produced to the output window of visual studio 2022 the message of the following:

ArcGIS Maps SDK: LayerViewState Error: RasterLayer
Internal error.

ArcGISPro v.3.41 has no issue in loading and exporting.   This must be a bug.

The one which is loaded fine and produces the wWktext as

PROJCS["NAD_1983_Alaska_Albers",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-154.0],PARAMETER["Standard_Parallel_1",55.0],PARAMETER["Standard_Parallel_2",65.0],PARAMETER["Latitude_Of_Origin",50.0],UNIT["Meter",1.0]]

and still it does not show in the Map.

0 Kudos