Npgsql.NetTopologySuite 10.0.3

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
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
13

.NET 8.0

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