HuaweiCloud.Driver.GaussDB.NetTopologySuite
0.1.0
dotnet add package HuaweiCloud.Driver.GaussDB.NetTopologySuite --version 0.1.0
NuGet\Install-Package HuaweiCloud.Driver.GaussDB.NetTopologySuite -Version 0.1.0
<PackageReference Include="HuaweiCloud.Driver.GaussDB.NetTopologySuite" Version="0.1.0" />
<PackageVersion Include="HuaweiCloud.Driver.GaussDB.NetTopologySuite" Version="0.1.0" />
<PackageReference Include="HuaweiCloud.Driver.GaussDB.NetTopologySuite" />
paket add HuaweiCloud.Driver.GaussDB.NetTopologySuite --version 0.1.0
#r "nuget: HuaweiCloud.Driver.GaussDB.NetTopologySuite, 0.1.0"
#:package HuaweiCloud.Driver.GaussDB.NetTopologySuite@0.1.0
#addin nuget:?package=HuaweiCloud.Driver.GaussDB.NetTopologySuite&version=0.1.0
#tool nuget:?package=HuaweiCloud.Driver.GaussDB.NetTopologySuite&version=0.1.0
GaussDB is the open source .NET data provider for PostgreSQL. It allows you to connect and interact with PostgreSQL server using .NET.
This package is an GaussDB plugin which allows you to interact with spatial data provided by the PostgreSQL PostGIS extension; PostGIS is a mature, standard extension considered to provide top-of-the-line database spatial features. On the .NET side, the plugin adds support for the types from the NetTopologySuite library, allowing you to read and write them directly to PostgreSQL.
To use the NetTopologySuite plugin, add a dependency on this package and create a GaussDBDataSource.
using HuaweiCloud.GaussDB;
using NetTopologySuite.Geometries;
var dataSourceBuilder = new GaussDBDataSourceBuilder(ConnectionString);
dataSourceBuilder.UseNetTopologySuite();
var dataSource = dataSourceBuilder.Build();
var conn = await dataSource.OpenConnectionAsync();
var point = new Point(new Coordinate(1d, 1d));
conn.ExecuteNonQuery("CREATE TEMP TABLE data (geom GEOMETRY)");
using (var cmd = new GaussDBCommand("INSERT INTO data (geom) VALUES (@p)", conn))
{
cmd.Parameters.AddWithValue("@p", point);
cmd.ExecuteNonQuery();
}
using (var cmd = new GaussDBCommand("SELECT geom FROM data", conn))
using (var reader = cmd.ExecuteReader())
{
reader.Read();
Assert.That(reader[0], Is.EqualTo(point));
}
For more information, visit the NetTopologySuite plugin documentation page.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net8.0
- HuaweiCloud.Driver.GaussDB (>= 0.1.0)
- NetTopologySuite (>= 2.5.0)
- NetTopologySuite.IO.PostGIS (>= 2.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on HuaweiCloud.Driver.GaussDB.NetTopologySuite:
| Package | Downloads |
|---|---|
|
xhr.EntityFrameworkCore.GaussDB.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for GaussDB Entity Framework Core provider. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 253 | 1/5/2026 |