Meziantou.Framework.Geo.GeoPackage
1.0.1
Prefix Reserved
dotnet add package Meziantou.Framework.Geo.GeoPackage --version 1.0.1
NuGet\Install-Package Meziantou.Framework.Geo.GeoPackage -Version 1.0.1
<PackageReference Include="Meziantou.Framework.Geo.GeoPackage" Version="1.0.1" />
<PackageVersion Include="Meziantou.Framework.Geo.GeoPackage" Version="1.0.1" />
<PackageReference Include="Meziantou.Framework.Geo.GeoPackage" />
paket add Meziantou.Framework.Geo.GeoPackage --version 1.0.1
#r "nuget: Meziantou.Framework.Geo.GeoPackage, 1.0.1"
#:package Meziantou.Framework.Geo.GeoPackage@1.0.1
#addin nuget:?package=Meziantou.Framework.Geo.GeoPackage&version=1.0.1
#tool nuget:?package=Meziantou.Framework.Geo.GeoPackage&version=1.0.1
Meziantou.Framework.Geo.GeoPackage
Reads the feature tables of GeoPackage files (.gpkg), the SQLite format that GDAL, QGIS and ArcGIS write, as the
features of Meziantou.Framework.Geo. A table is read whole, or one row at a time with bounded memory, and the R-tree
spatial index of a table reads only the features of a region.
Usage
// The layers of a GeoPackage file are its feature tables
var tables = GeoPackage.GetTables("TestData/places.gpkg");
Assert.Contains("cities", tables);
// The rows are read one at a time; with a box, the R-tree spatial index of the table finds the rows to read
var europe = new GeoBounds(West: -10, South: 35, East: 30, North: 60);
var names = new List<string?>();
await foreach (var city in GeoPackage.ReadFeaturesAsync("TestData/places.gpkg", "cities", new GeoPackageReaderOptions { Bounds = europe }))
{
names.Add((string?)city.Properties["name"]);
}
Assert.Contains("Paris", names);
Assert.DoesNotContain("Tokyo", names);
The package uses Microsoft.Data.Sqlite and its native SQLite library.
| Product | Versions 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. |
-
net10.0
- Meziantou.Framework.Geo (>= 1.0.2)
- Microsoft.Data.Sqlite (>= 10.0.14)
-
net11.0
- Meziantou.Framework.Geo (>= 1.0.2)
- Microsoft.Data.Sqlite (>= 10.0.14)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Meziantou.Framework.Geo.GeoPackage:
| Package | Downloads |
|---|---|
|
Meziantou.Framework.Geo.Maps.GeoPackage
Reads and writes the map bundles of Meziantou.Framework.Geo.Maps as GeoPackage files: one SQLite file per region, with a table and a spatial index per layer, that QGIS and GDAL open. |
GitHub repositories
This package is not used by any popular GitHub repositories.