Changes to this extension are governed by the Repository Rules from the Technical Advisory Committee (TAC). The TAC are the Custodians of this repository.
This is the combined package and installer for the LANDIS-II 'Core'. The Core also contains the following libraries, which are found in separate repositories:
- Library-Core
- Library-Datasets
- Library-Spatial
- Library-Utilities
All Core libraries can be accessed via MyGet https://www.myget.org/feed/Packages/landis-ii-v8
02.18.2019
- Assembly name changed from "Landis.RasterIO.Gdal" to "Landis.RasterIO.Gdal.Linux". The "Landis.RasterIO.Gdal.Linux (2.0.0)" uses Gdal.Core (1.0.0).
- .NET Core SDK Installation:
- https://www.microsoft.com/net/download
- After the installation check installed SDKs and runtimes in terminal:
dotnet --info
-
git clonehttps://github.com/LANDIS-II-Foundation/Core-Model-v8-LINUX.git
-
cd /<path to/Core-Model-v8-LINUX/Tool-Console/src
-
dotnet build -c Release
Make sure you find all Landis.Console and Landis.Extensions files in Release folder.
├── build
│ ├── extensions
│ │ └── extensions.xml
│ ├── license
│ │ └── LANDIS-II_Binary_license.rtf
│ └── Release
│ ├── Landis.Console.deps.json
│ ├── Landis.Console.dll
│ ├── Landis.Console.dll.config
│ ├── Landis.Console.pdb
│ ├── Landis.Console.runtimeconfig.dev.json
│ ├── Landis.Console.runtimeconfig.json
│ ├── Landis.Extensions.deps.json
│ ├── Landis.Extensions.dll
│ ├── Landis.Extensions.dll.config
│ ├── Landis.Extensions.pdb
│ ├── Landis.Extensions.runtimeconfig.dev.json
│ └── Landis.Extensions.runtimeconfig.json
-
"program": "${workspaceFolder}/Tool-Console/src/bin/Debug/Landis.Console.dll"
- Make sure your Landis.Console.dll file path
-
"cwd": "
-
"args": [".txt"]
- All LANDIS-II-v8 supporting libraries and extension DLL must be in
build/extensions
folder. - LANDIS-II-v8 Extensions information needs to be included in
build/extensions/extensions.xml
cd <path to your scenario folder>/<your scenario>.txt
dotnet /<path to>/Landis.Console.dll scenario.txt
The problem might be GDAL related error if you see error below.
-
cd /<path to (e.g. home/yourname)>/.nuget/packages/gdal.core/1.0.0/runtimes/linux-x64/native
-
ldd gdal_wrap.so
It will show dependencies. The libjpeg.so.62 and libpng16.so.16 are not found in this case. Install these dependencies.
Install missing dependencies:
-
sudo apt-get install libjpeg62
-
sudo apt-get install libpng16-16
-
There are many ways to compile LANDIS-II-v8 Extensions. This is one of the options.
Prerequisite: VS Code installation (see in Notes section)
-
cd /<path to >/Core-Model-v8-LINUX
-
git clone <path to LANDIS-II-v8 Extension>.git
-
git clone https://github.com/LANDIS-II-Foundation/Support-Library-Dlls-v8.git
-
Save all supporting libraries in
build/extensions
folder. -
Edit .csproj file
-
Add a line below in the first tag (see image below).false
-
Add lines below after the first tag (see image below).
....\build\extensions
-
Modify supporting libraries reference path to:
..\..\build\extensions\Landis.Library.<name>.dll
-
-
Select .csproj file and right click > Open in Terminal
-
dotnet build
Confirm successful build. You will need to debug If you have a problem with building the extension.
-
dotnet build -c Release
See
build/extensions
folder if all supporting libraries and extensions DLLs are created in the folder.
-
cd <path to where extension information text file direcotry>
-
dotnet /<path to>/Core-Model-v8-Linux/build/Release/Landis.Extensions.dll add "<extensions infomation>.txt"
To remove an extension:
dotnet /<path to>/Core-Model-v8-Linux/build/Release/Landis.Extensions.dll remove "<extensions name (e.g. Age-only Succession)"
Installation:
-
See more detail Working with C#
Note: You will need C# for Visual Studio Code extension for application development.
Installation:
Prerequisite: PowerShell Core on Linux installation
Installation:
- Powershell Extension (ms-vscode.powershell) in VS Code
- View > Command Palette... > Search for "Powershell"
- Select PowerShell: Show Integrated Console
Landis Extension supporting library import:
-
cd <Landis Extension folder path>/src/lib
-
./support_libs_download.ps1