Install-Package pocketken.H3 -Version
dotnet add package pocketken.H3 --version
<PackageReference Include="pocketken.H3" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add pocketken.H3 --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: pocketken.H3,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install pocketken.H3 as a Cake Addin
#addin nuget:?package=pocketken.H3&version=

// Install pocketken.H3 as a Cake Tool
#tool nuget:?package=pocketken.H3&version=
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

H3.net: A port of Uber's Hexagonal Hierarchical Geospatial Indexing System to C#

This is a port of Uber's H3 library to C# with most of the polygon functionality based on NetTopologySuite instead of in-library implementations. It supports netstandard2.0, netstandard2.1, net5.0, net6.0 and is based on release 3.7.2 of the C library.

H3 is a geospatial indexing system using a hexagonal grid that can be (approximately) subdivided into finer and finer hexagonal grids, combining the benefits of a hexagonal grid with S2's hierarchical subdivisions.


Upstream documentation is available at https://h3geo.org/. Basic getting-started documentation for this port of the library is available here. I have tried to make the library work and feel more "C# like" using classes, operators, extension methods, enumerables vs. arrays and so on, but some things may be implemented more or less as straight ports of the upstream library.

While the majority of the core H3 API should be here in one form or another, there's still the odd gap in terms of documentation and tests to validate behaviour vs. upstream. PRs to improve code, tests and documentation are definitely welcome and appreciated, although please keep in mind I am quite busy these days and may be a bit slow to respond. Sorry in advance! - 2021-12-16

Breaking Changes 📣
  • Visibility on several classes + methods changed from public to internal in an effort to clean up the public-facing API. Let me know if I've changed anything you're using
  • sealed added to all classes
Enhancements 🎉
  • Added multi-target support for net6.0, net5.0, netstandard2.0 #49 and netstandard2.1 #46
  • Implement polyfill modes #45
  • Reduced allocations / increased performance in H3.Algorithms.Polyfill.Fill and H3.Algorithms.Lines.LineTo #42
  • Other minor performance improvements and tweaks
There are no supported framework assets in this 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 80 12/16/2021
3.7.2 6,280 7/19/2021 358 4/22/2021 176 3/26/2021 148 3/24/2021