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