H2Sharp.EntityFrameworkCore.NetTopologySuite
9.0.12-alpha.13
dotnet add package H2Sharp.EntityFrameworkCore.NetTopologySuite --version 9.0.12-alpha.13
NuGet\Install-Package H2Sharp.EntityFrameworkCore.NetTopologySuite -Version 9.0.12-alpha.13
<PackageReference Include="H2Sharp.EntityFrameworkCore.NetTopologySuite" Version="9.0.12-alpha.13" />
<PackageVersion Include="H2Sharp.EntityFrameworkCore.NetTopologySuite" Version="9.0.12-alpha.13" />
<PackageReference Include="H2Sharp.EntityFrameworkCore.NetTopologySuite" />
paket add H2Sharp.EntityFrameworkCore.NetTopologySuite --version 9.0.12-alpha.13
#r "nuget: H2Sharp.EntityFrameworkCore.NetTopologySuite, 9.0.12-alpha.13"
#:package H2Sharp.EntityFrameworkCore.NetTopologySuite@9.0.12-alpha.13
#addin nuget:?package=H2Sharp.EntityFrameworkCore.NetTopologySuite&version=9.0.12-alpha.13&prerelease
#tool nuget:?package=H2Sharp.EntityFrameworkCore.NetTopologySuite&version=9.0.12-alpha.13&prerelease
H2Sharp Entity Framework Core — NetTopologySuite
This plugin maps NetTopologySuite geometry types to H2 2.5 GEOMETRY columns.
H2 supports shape and dimension constraints, optional SRID constraints, and WKT/EWKT
literals, including GEOMETRY 'SRID=4326;POINT (1 2)'.
Enable the mappings when configuring your context:
optionsBuilder.UseH2("Data Source=cities;Storage=Memory", h2 => h2.UseNetTopologySuite());
For a constrained point column:
modelBuilder.Entity<City>()
.Property(city => city.Center)
.HasColumnType("geometry(point, 4326)");
EnvelopeCombiner.CombineAsGeometry over a group translates to H2's ENVELOPE
aggregate, which returns the minimum bounding box in the 2D coordinate plane.
H2 2.5 has no native PostGIS ST_* functions and no GEOGRAPHY type. The package
registers NetTopologySuite-backed functions under the familiar PostGIS names
(ST_Area, ST_Buffer, ST_Contains, ST_Union, ST_Collect, …) and translates the
NTS members and methods to them; geometries cross the function boundary as EWKT. Aggregate
envelopes use H2's native ENVELOPE. Geography/spheroid semantics and a KNN index operator
are not available; DistanceKnn answers the planar distance.
The provider targets H2 2.5. Port-specific implementation gaps are tracked in DIVERGENCES.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .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. |
-
net8.0
- H2Sharp.EntityFrameworkCore (>= 9.0.12-alpha.13)
- NetTopologySuite (>= 2.6.0)
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 |
|---|---|---|
| 9.0.12-alpha.13 | 35 | 12/3/2026 |