Npgsql.NetTopologySuite 6.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, simply add a dependency on this package and set it up at program startup:

NpgsqlConnection.GlobalTypeMapper.UseNetTopologySuite();

Once this is done, you can simply use NetTopologySuite types when interacting with PostgreSQL:

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
38
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
29
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
26
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
25
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
24
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
23
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
22
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
21
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
20
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
19

.NET Standard 2.0

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