Npgsql.NetTopologySuite 9.0.5

Npgsql 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 Npgsql 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 NpgsqlDataSource.

using Npgsql;
using NetTopologySuite.Geometries;

var dataSourceBuilder = new NpgsqlDataSourceBuilder(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 NpgsqlCommand("INSERT INTO data (geom) VALUES (@p)", conn))
{
    cmd.Parameters.AddWithValue("@p", point);
    cmd.ExecuteNonQuery();
}

using (var cmd = new NpgsqlCommand("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.

Showing the top 20 packages that depend on Npgsql.NetTopologySuite.

Packages Downloads
FreeSql.Provider.PostgreSQL
FreeSql 数据库实现,基于 PostgreSQL 9.5
14
FreeSql.Provider.PostgreSQL
FreeSql 数据库实现,基于 PostgreSQL 9.5
13
FreeSql.Provider.PostgreSQL
FreeSql 数据库实现,基于 PostgreSQL 9.5
12

.NET 6.0

Version Downloads Last updated
10.0.2 2 3/13/2026
10.0.1 6 12/20/2025
10.0.0 8 11/24/2025
10.0.0-rc.1 7 10/8/2025
9.0.5 3 3/13/2026
9.0.4 7 10/7/2025
9.0.3 5 6/8/2025
9.0.2 3 6/17/2025
9.0.1 5 6/14/2025
9.0.0 5 6/14/2025
8.0.9 2 3/13/2026
8.0.8 10 10/7/2025
8.0.7 3 6/7/2025
8.0.6 5 6/14/2025
8.0.5 6 6/13/2025
8.0.4 2 6/14/2025
8.0.3 2 6/14/2025
8.0.2 2 6/13/2025
8.0.1 4 6/13/2025
8.0.0 3 6/13/2025
8.0.0-rtm 58 6/14/2025
8.0.0-rc.2 4 6/9/2025
8.0.0-preview.4 4 6/14/2025
8.0.0-preview.3 4 6/9/2025
8.0.0-preview.2 2 6/9/2025
8.0.0-preview.1 3 6/9/2025
7.0.10 2 6/14/2025
7.0.9 6 6/13/2025
7.0.8 3 6/14/2025
7.0.7 5 6/14/2025
7.0.6 4 6/14/2025
7.0.4 2 6/14/2025
7.0.2 2 6/13/2025
7.0.1 3 6/14/2025
7.0.0 4 6/13/2025
7.0.0-rc.2 4 6/9/2025
7.0.0-rc.1 3 6/13/2025
7.0.0-preview.7 3 6/9/2025
7.0.0-preview.6 4 6/9/2025
7.0.0-preview.5 4 6/10/2025
7.0.0-preview.4 3 6/9/2025
7.0.0-preview.3 3 6/9/2025
7.0.0-preview.2 3 6/9/2025
7.0.0-preview.1 4 6/9/2025
6.0.13 11 7/1/2025
6.0.12 4 6/12/2025
6.0.11 3 6/9/2025
6.0.10 3 6/13/2025
6.0.9 3 6/14/2025
6.0.8 2 6/14/2025
6.0.7 3 6/13/2025
6.0.6 3 6/15/2025
6.0.5 3 6/14/2025
6.0.4 3 6/14/2025
6.0.3 4 6/14/2025
6.0.2 2 6/14/2025
6.0.1 2 6/14/2025
6.0.0 4 6/14/2025
6.0.0-rc.2 12 6/9/2025
6.0.0-rc.1 13 6/8/2025
6.0.0-preview7 14 6/9/2025
6.0.0-preview6 14 6/9/2025
6.0.0-preview5 12 6/9/2025
6.0.0-preview4 13 6/9/2025
6.0.0-preview3 13 6/9/2025
6.0.0-preview2 14 6/9/2025
5.0.18 15 6/9/2025
5.0.17 15 6/9/2025
5.0.16 17 6/8/2025
5.0.15 15 6/9/2025
5.0.14 14 6/8/2025
5.0.13 16 6/8/2025
5.0.12 14 6/9/2025
5.0.11 15 6/9/2025
5.0.10 17 6/8/2025
5.0.7 12 6/9/2025
5.0.5 14 6/9/2025
5.0.4 14 6/9/2025
5.0.3 13 6/9/2025
5.0.2 14 6/8/2025
5.0.1.1 16 6/9/2025
5.0.0 13 6/6/2025
5.0.0-preview1.1 15 6/9/2025
5.0.0-alpha1 12 6/9/2025
4.1.14 15 6/8/2025
4.1.13 15 6/8/2025
4.1.12 24 6/8/2025
4.1.11 14 6/9/2025
4.1.9 14 6/8/2025
4.1.8 14 6/9/2025
4.1.7 13 6/9/2025
4.1.6 12 6/9/2025
4.1.5 11 6/8/2025
4.1.4 13 6/8/2025
4.1.3 14 6/8/2025
4.1.2 12 6/9/2025
4.1.1 12 6/8/2025
4.1.0 13 6/8/2025
4.1.0-preview2 14 6/8/2025
4.1.0-preview1 13 6/8/2025
4.0.17 13 6/8/2025
4.0.16 16 6/8/2025
4.0.15 16 6/9/2025
4.0.14 14 6/8/2025
4.0.13 16 6/8/2025
4.0.11 13 6/9/2025
4.0.10 16 6/8/2025
4.0.9 14 6/9/2025
4.0.8 13 6/9/2025
4.0.7 13 6/8/2025
4.0.6 13 6/8/2025
4.0.5 14 6/9/2025
4.0.4.1 13 6/8/2025
1.0.2 17 6/8/2025
1.0.1 16 6/9/2025
1.0.0 15 6/10/2025
1.0.0-rc1 12 6/8/2025