Meziantou.Framework.Geo.Maps.GeoPackage 1.0.3

Prefix Reserved
dotnet add package Meziantou.Framework.Geo.Maps.GeoPackage --version 1.0.3
                    
NuGet\Install-Package Meziantou.Framework.Geo.Maps.GeoPackage -Version 1.0.3
                    
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="Meziantou.Framework.Geo.Maps.GeoPackage" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meziantou.Framework.Geo.Maps.GeoPackage" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Meziantou.Framework.Geo.Maps.GeoPackage" />
                    
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 Meziantou.Framework.Geo.Maps.GeoPackage --version 1.0.3
                    
#r "nuget: Meziantou.Framework.Geo.Maps.GeoPackage, 1.0.3"
                    
#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 Meziantou.Framework.Geo.Maps.GeoPackage@1.0.3
                    
#: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=Meziantou.Framework.Geo.Maps.GeoPackage&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Meziantou.Framework.Geo.Maps.GeoPackage&version=1.0.3
                    
Install as a Cake Tool

Meziantou.Framework.Geo.Maps.GeoPackage

Reads and writes the map bundles of Meziantou.Framework.Geo.Maps as GeoPackage files: one file per region, such as France.gpkg, with a table and an R-tree spatial index per layer, that QGIS, GDAL and ArcGIS open. The files are GeoPackage 1.4, in WGS 84, and the metadata of the map is in the metadata extension.

Usage

// Write the map of a region as a GeoPackage file, which QGIS and GDAL open, such as maps/Switzerland.gpkg
var directory = Directory.CreateTempSubdirectory().FullName;
var switzerland = MapCatalog.Default.GetMap("Switzerland");
GeoPackageMapFormat.Instance.Write(GeoPackageMapFormat.Instance.GetPath(directory, switzerland.Region), switzerland);

// A catalog reads the GeoPackage files when it has the format, here before the folder formats
var catalog = new MapCatalog(directory, [GeoPackageMapFormat.Instance, .. MapCatalog.DefaultFormats]);
Assert.Equal(["Switzerland"], catalog.Regions);

var map = catalog.GetMap("Switzerland");
Assert.HasCount(26, map.Load(MapLayer.StatesProvinces));

The tools/Meziantou.Framework.Geo.Maps.Tool tool of the repository writes GeoPackage bundles with --format gpkg. The package uses Microsoft.Data.Sqlite and its native SQLite library, and reads the layers with Meziantou.Framework.Geo.GeoPackage.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.3 40 11/13/2026
1.0.2 86 11/8/2026
1.0.1 94 11/8/2026
1.0.0 89 11/7/2026