AnsweredAssumed Answered

Example on rasterlayer with Jpeg 2000?

Question asked by MapMaster20 on Feb 27, 2018
Latest reply on Mar 16, 2018 by MapMaster20

I've been searching for examples on how to create a RasterLayer from *.JP2 files but haven't found any.

I had no problems adding the jp2 file in ArcMap 10.3 but when I try to add it as an rasterLayer i get SpatialReference = null;

 

I have had no problems with other file formats iv'e tried.

 

Heres my code

 

Raster inRaster = new Raster(myFileSource);
await inRaster.LoadAsync();

RasterLayer newRasterLayer = new RasterLayer(inRaster);

this.MyMap.OperationalLayers.Add(newRasterLayer);

Outcomes