AnsweredAssumed Answered

Load Raster World File in .Net Runtime SDK

Question asked by tcrone_jca on Mar 2, 2017
Latest reply on Mar 7, 2017 by JNery-esristaff

Is there a way to load raster images with world files in the .Net Runtime SDK 100.0.0?  I have a .tif image and a .tfw file with transformation information.  The following code block works with GeoTiff files, but not with generic .tif images:

 

var raster = new Raster(System.IO.Path.Combine(GetStorageDirectory(), "redickville.tif"));
await raster.LoadAsync();
var rasterLayer = new RasterLayer(raster);

await rasterLayer.LoadAsync();

Map.OperationalLayers.Add(rasterLayer);

 

There are no runtime errors, but the raster does not appear.  Is there a way to include the .tfw file in this process?  Or the projection information?

 

If I use a 3rd party tool to create a GeoTiff file using the same files, that raster image can be loaded and displayed correctly using the above code.  I attached the files I used.

Thanks.

Attachments

Outcomes