Hi Jany,
Thanks for responding.
FYI: I’m using a downloaded version of DotSpatial 1.8, not the NuGet 1.7 packages with VS 2015, .Net framework 4, compiled for Any CPU.
First of all: can you tell me if GDAL can handle .asc files? It seems it can as the MapWindowsGIS can open them. If not, the GDAL extension is not what I need anyway.
1: To answer your first question: I’m using a DS map on one of my own controls, so I don’t need the IHeader at all. I only use it as it is one of the steps to get the plugins to work.
But there are a couple of other things:
2: I have added the DS AppManager control to my form but can’t set other directories (via the properties panel). When I press the Add button, I get the following error: Constructor on type 'System String' not found
3: There is no Window/Extensions folder in my Solution explorer, as per http://stackoverflow.com/questions/29122130/raster-data-loading-from-filepath-in-dotspatial.
I have not used Extensions before, and I don’t know how to make that happen or if that is even needed.
4: I can’t find a precise description of what exactly needs to be put into the Plugins directory, so I just copied the whole DotSpatial.Data.Raster.GdalExtension folder from the Windows Extension directory of the DS distribution into my VS project output (bin/debug) folder. The GDALExtension directory is locked when the program is running and unlocked after terminating it, so something must have grabbed hold of it.
Current error that pops up during the execution of the AppManager1.LoadExtensions() code in my application's New() method:
"An unhandled exception of type 'System.ComponentModel.Composition.CompositionException' occurred in DotSpatial.Controls.dll"
I can't find much useful info on this error.
So you see, there may be problems even before we get to your IHeader suggestion.
Or maybe I can work around using Gdal altogether by converting my .asc file to .bgd files, but I can't find how to do that.
Thanks very much and it would be great if you could give me some pointers what to try next?
Cheers
Francis
Thanks for responding.
FYI: I’m using a downloaded version of DotSpatial 1.8, not the NuGet 1.7 packages with VS 2015, .Net framework 4, compiled for Any CPU.
First of all: can you tell me if GDAL can handle .asc files? It seems it can as the MapWindowsGIS can open them. If not, the GDAL extension is not what I need anyway.
1: To answer your first question: I’m using a DS map on one of my own controls, so I don’t need the IHeader at all. I only use it as it is one of the steps to get the plugins to work.
But there are a couple of other things:
2: I have added the DS AppManager control to my form but can’t set other directories (via the properties panel). When I press the Add button, I get the following error: Constructor on type 'System String' not found
3: There is no Window/Extensions folder in my Solution explorer, as per http://stackoverflow.com/questions/29122130/raster-data-loading-from-filepath-in-dotspatial.
I have not used Extensions before, and I don’t know how to make that happen or if that is even needed.
4: I can’t find a precise description of what exactly needs to be put into the Plugins directory, so I just copied the whole DotSpatial.Data.Raster.GdalExtension folder from the Windows Extension directory of the DS distribution into my VS project output (bin/debug) folder. The GDALExtension directory is locked when the program is running and unlocked after terminating it, so something must have grabbed hold of it.
Current error that pops up during the execution of the AppManager1.LoadExtensions() code in my application's New() method:
"An unhandled exception of type 'System.ComponentModel.Composition.CompositionException' occurred in DotSpatial.Controls.dll"
I can't find much useful info on this error.
So you see, there may be problems even before we get to your IHeader suggestion.
Or maybe I can work around using Gdal altogether by converting my .asc file to .bgd files, but I can't find how to do that.
Thanks very much and it would be great if you could give me some pointers what to try next?
Cheers
Francis