MaxRev.Gdal.Core 3.6.3.100

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package MaxRev.Gdal.Core --version 3.6.3.100                
NuGet\Install-Package MaxRev.Gdal.Core -Version 3.6.3.100                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MaxRev.Gdal.Core" Version="3.6.3.100" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MaxRev.Gdal.Core --version 3.6.3.100                
#r "nuget: MaxRev.Gdal.Core, 3.6.3.100"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MaxRev.Gdal.Core as a Cake Addin
#addin nuget:?package=MaxRev.Gdal.Core&version=3.6.3.100

// Install MaxRev.Gdal.Core as a Cake Tool
#tool nuget:?package=MaxRev.Gdal.Core&version=3.6.3.100                

gdal.netcore Mentioned in Awesome Geospatial Packages CI

A simple (as is) build engine of GDAL 3.6.3 library for .NET.

Packages

NuGet: MaxRev.Gdal.Core <br/>

NuGet: MaxRev.Gdal.LinuxRuntime.Minimal <br/>

NuGet: MaxRev.Gdal.WindowsRuntime.Minimal

Table Of Contents

<small><i><a href='http://ecotrust-canada.github.io/markdown-toc/'>Table of contents generated with markdown-toc</a></i></small>

About this library

What is this library

  • Only generates assemblies and binds everything into one package.
  • Provides easy access to GDAL by installing only core and runtime package
  • DOES NOT require installation of GDAL. From 3.6.1 version GDAL_DATA is also shipped. While it contains the proj.db database you can require proj-data grid shifts.

What is not

  • Does not compile all drivers. Only configured, they are listed below. By default GDAL has a lot of internal drivers.
  • Does not change GDAL source code.
  • Does not extend GDAL methods.

How to use

  1. Install core package - MaxRev.Gdal.Core
Install-Package MaxRev.Gdal.Core
  1. Install libraries for your runtime. You can install one of them or both with no conflicts.
Install-Package MaxRev.Gdal.WindowsRuntime.Minimal
Install-Package MaxRev.Gdal.LinuxRuntime.Minimal
  1. Initialize libraries in runtime
using MaxRev.Gdal.Core;
...
// call it once, before using GDAL
// this will initialize all GDAL drivers and set PROJ6 shared library paths
GdalBase.ConfigureAll();

  1. Profit! Use it in ordinary flow

Using GDAL functions

If you're struggling using GDAL functions. Here's a good place to start:

Development

How to compile on Windows

Enter win directory to find out how.

How to compile on Unix

Detailed guide is here - unix.

About build configuration

The current version targets GDAL 3.6.3 with minimal drivers. What stands for 'minimal' - drivers that require no additional dependencies (mainly boost). For example, MySQL driver is not included, because it requires 15+ boost deps. Same goes for Poppler driver. They can be packaged upon request.

Drivers included PROJ(9.2.0), GEOS(3.11.1), and more than 200 other drivers. To view full list of drivers, To view the complete list of drivers, you can view the full list with GDAL's API or see property DriversInCurrentVersion here.

NOTE: Windows and Linux drivers availability may differ. Ask me about a specific driver for runtime. Please issue if I need to mention any packages.

Building runtime libraries

Current version is targeting GDAL 3.6.3 version. Each runtime has to be build separately, but this can be done concurrently as they are using different contexts (build folders). Primary operating bindings (in gdal.core package) are build from windows.

To make everything work smoothly, each configuration targets the same drivers and their versions, respectively.

To start building for a specific runtime, see the README.md in a respective directory.

FAQ

Q: Packages does not work on CentOS 7, Ubuntu 18.04

A: These are old distros and are out of support (EOL). Use docker (see this Dockerfile how to package your app) or a newer distro (GLIBC 2.31+). Packages for older systems are difficult to maintain. From 3.6.x version the Debian 11 distro is used. See this for more info.

Q: Can I compile it on Ubuntu or another Unix-based system?

A: Yes, you can (see unix folder for readme). All you have to do, is to choose one of the latest distros like Ubuntu 22.04 or Debian 11 (recommended). From the 3.6.x version the Debian 11 distro is used by default. It was changed because of EOL of the previous distro (see answer above). Prior to 3.6.x version packages were built on CentOS - glibc of version 2.17. It's the lowest version (in my opinion) that suits all common systems (Ubuntu, Debian, Fedora).

Q: Projections are not working as expected

A: This package only contains the proj.db database. Make sure you have installed proj-data package. It contains aditional grid shifts and other data required for projections. Add path to your data folder with MaxRev.Gdal.Core.Proj.Configure(). See this for more info.

Q: Some drivers complain about missing data files

A: This is related to the previous package versions (prior to 3.6.1). From 3.6.1 version, GDAL_DATA folder is also shipped with core package.

Q: Missing {some} drivers, can you add more?

A: Feel free to contribute and I will help you you to add them. Here's the my additional answer.

Q: GDAL functions are not working as expected

A: Try to search an issue on github. In 98% of cases, they are working fine.

Q: Some types throw exceptions from SWIG on Windows

A: Yes, currently there are some redundant types in OGR namespace. This will be fixed in the next builds.

Q: In some methods performance is slower on Unix

A: Apparently, it's not a fault of the build engine. I did not face this issue and I use this packages in several production environments.

Q: OSGeo.OGR.SpatialReference throws System.EntryPointNotFoundException exception

A: That's a problem with swig bindings. Please, use SpatialReference type from OSR namespace. More info here and here.

About and Contacts

based on https://github.com/OSGeo/gdal && https://github.com/jgoday/gdal

Contact me: Telegram - MaxRev

Enjoy!

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on MaxRev.Gdal.Core:

Package Downloads
Terradue.Data.Stars

Collection of data Plugins for Terradue.Stars

MaxRev.Gdal.Universal

GDAL (3.10.0) minimal libraries package. Drivers included PROJ (9.5.0), GEOS, SQLITE3, CURL, JPEG, PNG, HDF4, HDF5, and others. Targets linux-arm64 runtime. Target Frameworks: netstandard[2.1|2.0], netframework 4.6.1+, net6.0, net7.0, net8.0

DiBK.RuleValidator.Extensions.Gml

Hjelpemetoder og utvidelser for GML og geometrier til DiBK.RuleValidator

GTiff2Tiles

Library to create tiles from GeoTiff images. Analogue of gdal2tiles.py on C#. Supports x64 windows and linux.

AsGeo

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.10.0.306 1,376 11/13/2024
3.10.0.296 982 11/7/2024
3.9.3.292 170 11/7/2024
3.9.3.287 123 11/7/2024
3.9.3.266 252 11/5/2024
3.9.2.259 139 11/5/2024
3.9.1.247 23,874 8/14/2024
3.9.1.244 1,834 8/11/2024
3.9.1.242 246 8/10/2024
3.9.1.240 243 8/9/2024
3.9.0.218 7,589 6/14/2024
3.8.3.286 58,173 1/25/2024
3.7.0.217 65,557 5/12/2023
3.6.4.100 7,187 5/6/2023
3.6.3.100 1,216 5/2/2023
3.6.2.200 1,483 5/2/2023
3.6.1.120 48,342 2/22/2023
3.6.1.100 11,988 12/22/2022
3.6.0.100 2,709 12/12/2022
3.3.3.120 60,543 3/28/2022
3.3.3.110 106,715 1/5/2022
3.2.0.320 69,900 4/17/2021
3.2.0.310 16,002 3/19/2021
3.2.0.300 113,078 3/7/2021
3.2.0.250 54,303 1/4/2021
3.2.0.210 1,633 12/17/2020
3.2.0.200 1,072 12/16/2020
3.2.0.110 1,168 12/14/2020
3.2.0.100 1,367 12/12/2020
3.1.2.110 1,576 12/5/2020
3.1.0.100 37,563 6/30/2020
3.0.1.25 22,464 10/21/2019
3.0.1.2 1,794 10/10/2019
3.0.0.4 1,739 7/20/2019
3.0.0.3 1,126 6/26/2019
3.0.0.2 1,135 6/21/2019
3.0.0.1 1,108 6/20/2019
3.0.0 1,343 6/19/2019

- GDAL Version 3.6.3
     - Built with VCPKG