Hello!
I am trying to use DotSpatial from F# scripts. For this, I've constructed a F# library project, downloaded all DotSpatial Nugget Packages for this project and compiled it.
In this project, I use the Library1.fs to include my personal custom stuff, say, wrappers to make things easier to use, new types etc.. Finally, along with the project I also included a script.fsx to reference and load all DotSpatial dlls. Now everytime I need to do some analysis, all I need to do is to load this script.fsx file and have access to all DotSpatial objects and custom stuff in my scripts.
This seems to work fine: I can create spatial objects, work with them, and even created a "plot" function by invoking a form with a Map control in it, and configuring mouse and keyboard events to control it. Very cool.
However, I'm having a problem with the Gdal extension. Is there a way to manually open raster files using the extension? I tried using
How could I load extensions (Gdal) without using the App Manager, as I'm not always using a MapControl?
I am trying to use DotSpatial from F# scripts. For this, I've constructed a F# library project, downloaded all DotSpatial Nugget Packages for this project and compiled it.
In this project, I use the Library1.fs to include my personal custom stuff, say, wrappers to make things easier to use, new types etc.. Finally, along with the project I also included a script.fsx to reference and load all DotSpatial dlls. Now everytime I need to do some analysis, all I need to do is to load this script.fsx file and have access to all DotSpatial objects and custom stuff in my scripts.
This seems to work fine: I can create spatial objects, work with them, and even created a "plot" function by invoking a form with a Map control in it, and configuring mouse and keyboard events to control it. Very cool.
However, I'm having a problem with the Gdal extension. Is there a way to manually open raster files using the extension? I tried using
#r "\\Windows Extensions\\DotSpatial.Data.Rasters.GdalExtension\\DotSpatial.Data.Rasters.GdalExtension.dll"
open DotSpatial.Data.Rasters.GdalExtension
but it doesnt seem to work:let raster = Raster.Open(@"D:\SG-21-Z-D.tif");
System.ApplicationException: The specified file type is not supported.
Which, I presume, means the extension has not loaded.How could I load extensions (Gdal) without using the App Manager, as I'm not always using a MapControl?