Erdas Imagine .img foramt not supported in GDalRasterLayer???

Topics: SharpMap v0.9 / v1.x
Feb 25, 2009 at 6:20 AM

Hiii...here's the code

SharpMap.Layers.GdalRasterLayer Layer = new SharpMap.Layers.GdalRasterLayer("Layer","M:\\Thesis Semester\\Reference Data\\g9roads.img");
_sharpMap.Layers.Add(Layer);
_sharpMap.ZoomToExtents();
picMap.Image = _sharpMap.GetMap();

Gives no Exception or Error but does not display the Erdas imagine .img image format and if with the same code i refer to the .jpg format it displays the image well......

 SharpMap.Layers.GdalRasterLayer Layer = new SharpMap.Layers.GdalRasterLayer("Layer","M:\\Thesis Semester\\Reference Data\\roads.jpg");
_sharpMap.Layers.Add(Layer);
_sharpMap.ZoomToExtents();
picMap.Image = _sharpMap.GetMap();

Please any idea in this regard.....wat do i need to do to display .img format, or am i missing something????? HELP will be greatly appreciated !!!

Mar 18, 2009 at 12:22 PM
Instead of displaying .img format convert the image into .sid Mrsid format it would display fine....this conversion can be done use Erdas Imagine import/export utility. .img format is yet not supported by SharpMap as it comes in two files .img and .rrd