Spatialite.Native 1.0.0

dotnet add package Spatialite.Native --version 1.0.0
                    
NuGet\Install-Package Spatialite.Native -Version 1.0.0
                    
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="Spatialite.Native" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spatialite.Native" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Spatialite.Native" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Spatialite.Native --version 1.0.0
                    
#r "nuget: Spatialite.Native, 1.0.0"
                    
#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.
#:package Spatialite.Native@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Spatialite.Native&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Spatialite.Native&version=1.0.0
                    
Install as a Cake Tool

Spatialite.Native

Pre-built mod_spatialite native libraries for SQLite spatial extensions.

Supported Platforms

Platform Architecture Runtime Identifier
Windows x64 win-x64
Windows x86 win-x86
macOS x64 (Intel) osx-x64
macOS arm64 (Apple Silicon) osx-arm64
Linux x64 linux-x64
Linux arm64 linux-arm64

Usage

After installing this NuGet package, the native libraries for all supported platforms will be automatically copied to your output directory under the runtimes/{rid}/native/ folder structure.

Loading in .NET

using Microsoft.Data.Sqlite;

var connection = new SqliteConnection("Data Source=mydb.sqlite");
connection.Open();
connection.LoadExtension("mod_spatialite");

Loading with SQLitePCLRaw

using SQLitePCL;

raw.SetProvider(new SQLite3Provider_e_sqlite3());
// Then load the extension

Dependencies Bundled

Each platform bundle includes all required dependencies:

  • libgeos (Geometry Engine)
  • libproj (Coordinate transformation)
  • libfreexl (Excel file reading)
  • librttopo (RT Topology Library)
  • libxml2 (XML parsing)
  • zlib (Compression)

License

mod_spatialite is licensed under the MPL tri-license (MPL 1.1/GPL 2.0+/LGPL 2.1+). See https://www.gaia-gis.it/fossil/libspatialite/index for details.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 187 1/18/2026