adding .tiff images in layer

Apr 24, 2008 at 9:49 AM
Hi i have i small problem
how do i add tiff images (eg a image with oceans latidude) to my sharpmap object?
my current code is

vl = new VectorLayer(temptag.name); //get a .shap layer in my case its a world map
vl.DataSource = new SharpMap.Data.Providers.ShapeFile(temptag.Tag + temptag.name);
vl.Style.Fill = Brushes.LightGreen;
vl.Style.EnableOutline = true;
vl.Style.Outline = Pens.DarkBlue;
map.Layers.Add(vl);
//here i want to add my tiff image that represents hight
map.ZoomToExtents();
picturebox1.image = map.map.GetMap();
Developer
Apr 24, 2008 at 1:07 PM
You can use GdalRasterLayer:
http://www.codeplex.com/SharpMap/SourceControl/FileView.aspx?itemId=430866&changeSetId=32916