Problems using GDALRasterLayer

Topics: General Topics
Nov 27, 2006 at 10:50 AM

Hi,

I have some problems using GDALRasterLayer. I can load my raster image without errors but I can't see it on my MapImage.

The image loads, but I only see a black image. If I zoom the image, I can see some grey lines (streets in my raster), so I'm sure that the image is loaded, but is not shown clearly.

That's the code:

Dim map As SharpMap.Map = New SharpMap.Map(GestMap.Size)
Dim RLayer As SharpMap.Layers.GdalRasterLayer = New SharpMap.Layers.GdalRasterLayer("Imagen", Imagen)

map.Layers.Add(RLayer)
map.Zoom = 0.1
map.WorldToImage(map.Center)
GestMap.Map = map
GestMap.ActiveTool = SharpMap.Forms.MapImage.Tools.ZoomIn

The image I'm trying to load is in BMP format. I have tried too with GIF and TIF formats, but the result is the same.

Does anyone know what's the problem?
Thanks