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
                    
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="HuaweiCloud.Driver.GaussDB.NetTopologySuite" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HuaweiCloud.Driver.GaussDB.NetTopologySuite" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="HuaweiCloud.Driver.GaussDB.NetTopologySuite" />
                    
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 HuaweiCloud.Driver.GaussDB.NetTopologySuite --version 0.1.0
                    
#r "nuget: HuaweiCloud.Driver.GaussDB.NetTopologySuite, 0.1.0"
                    
#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 HuaweiCloud.Driver.GaussDB.NetTopologySuite@0.1.0
                    
#: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=HuaweiCloud.Driver.GaussDB.NetTopologySuite&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=HuaweiCloud.Driver.GaussDB.NetTopologySuite&version=0.1.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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