Loading Raster with SharpMap (GDAL) doesnt work

المشرف العام

Administrator
طاقم الإدارة
i have problems loading rasterfiles (.tiff) with SharpMap

I tried initializing a SharpMap GDAL Layer but nothing happens. It doesnt even throw and error when debugging after i set a path for the file which doesnt even exist.

SharpMap.Layers.GdalRasterLayer G = new SharpMap.Layers.GdalRasterLayer("Raster", "C:\*.tiff");

I have all the gdal.dll linked in my VS Project.

Since i also have a world file for my raster (.tfw) I also tried using a GdiImageLayer, which can optionally use a world file https://www.nuget.org/packages/SharpMap/

SharpMap.Layers.GdiImageLayer H = new SharpMap.Layers.GdiImageLayer("Raster", "C:\\*.tiff");but how can i set it??

Sorry for my bad english and im completely new to c# programming, can anyone help me with that problem. I need this to get solved for my thesis.

Thank you so much



أكثر...
 
أعلى