Npgsql.NetTopologySuite 10.0.0

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
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
47
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
48
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
49
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
50
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
51
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
53
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
54
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
56
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
58
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
59
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
60
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
63
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
71
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
74

.NET 8.0

Version Downloads Last updated
10.0.0 4 11/28/2025
10.0.0-rc.1 11 10/11/2025
9.0.4 6 10/11/2025
9.0.3 14 02/26/2025
9.0.2 24 12/12/2024
9.0.1 20 11/26/2024
9.0.0 19 11/26/2024
8.0.8 5 10/10/2025
8.0.7 14 02/26/2025
8.0.6 18 11/26/2024
8.0.5 35 10/14/2024
8.0.4 21 09/12/2024
8.0.3 29 05/22/2024
8.0.2 27 02/20/2024
8.0.1 29 12/08/2023
8.0.0 33 11/21/2023
8.0.0-rtm 25 11/21/2023
8.0.0-rc.2 30 10/13/2023
8.0.0-preview.4 54 06/06/2023
8.0.0-preview.3 56 05/22/2023
8.0.0-preview.2 37 04/04/2023
8.0.0-preview.1 50 04/04/2023
7.0.10 12 03/18/2025
7.0.9 17 11/26/2024
7.0.8 24 09/12/2024
7.0.7 23 05/22/2024
7.0.6 33 09/26/2023
7.0.4 26 06/06/2023
7.0.2 38 04/04/2023
7.0.1 49 01/15/2023
7.0.0 49 12/02/2022
7.0.0-rc.2 37 08/22/2023
7.0.0-rc.1 36 09/22/2022
7.0.0-preview.7 50 08/19/2022
7.0.0-preview.6 42 09/21/2022
7.0.0-preview.5 37 06/13/2023
7.0.0-preview.4 56 09/24/2022
7.0.0-preview.3 106 09/24/2022
7.0.0-preview.2 81 09/21/2022
7.0.0-preview.1 98 09/24/2022
6.0.13 19 11/26/2024
6.0.12 25 09/12/2024
6.0.11 27 05/22/2024
6.0.10 29 09/30/2023
6.0.9 45 04/04/2023
6.0.8 46 01/15/2023
6.0.7 47 09/24/2022
6.0.6 39 09/10/2022
6.0.5 46 09/09/2022
6.0.4 68 09/08/2022
6.0.3 75 06/27/2022
6.0.2 42 09/09/2022
6.0.1 32 09/11/2022
6.0.0 73 09/10/2022
6.0.0-rc.2 52 09/24/2022
6.0.0-rc.1 30 09/24/2022
6.0.0-preview7 58 09/24/2022
6.0.0-preview6 100 09/24/2022
6.0.0-preview5 34 09/24/2022
6.0.0-preview4 35 09/24/2022
6.0.0-preview3 56 09/23/2022
6.0.0-preview2 40 09/21/2022
5.0.18 21 05/22/2024
5.0.17 29 09/28/2023
5.0.16 60 04/04/2023
5.0.15 32 09/22/2022
5.0.14 37 06/06/2023
5.0.13 42 09/21/2022
5.0.12 59 09/24/2022
5.0.11 79 09/24/2022
5.0.10 53 09/22/2022
5.0.7 38 09/09/2022
5.0.5 57 09/13/2022
5.0.4 58 09/10/2022
5.0.3 38 09/09/2022
5.0.2 111 09/09/2022
5.0.1.1 44 09/21/2022
5.0.0 29 09/09/2022
5.0.0-preview1.1 48 09/23/2022
5.0.0-alpha1 122 09/24/2022
4.1.14 20 05/22/2024
4.1.13 18 05/22/2024
4.1.12 37 05/12/2023
4.1.11 53 09/24/2022
4.1.9 81 09/09/2022
4.1.8 47 09/14/2022
4.1.7 50 09/09/2022
4.1.6 47 09/09/2022
4.1.5 97 09/11/2022
4.1.4 43 09/10/2022
4.1.3 65 09/11/2022
4.1.2 114 09/23/2022
4.1.1 85 09/10/2022
4.1.0 38 09/10/2022
4.1.0-preview2 67 09/21/2022
4.1.0-preview1 34 09/17/2022
4.0.17 27 06/11/2024
4.0.16 25 05/22/2024
4.0.15 27 05/22/2024
4.0.14 29 05/22/2024
4.0.13 49 09/24/2022
4.0.11 95 09/24/2022
4.0.10 38 08/22/2023
4.0.9 51 09/10/2022
4.0.8 128 09/07/2022
4.0.7 89 09/13/2022
4.0.6 41 09/09/2022
4.0.5 68 09/09/2022
4.0.4.1 35 09/24/2022
1.0.2 59 09/09/2022
1.0.1 34 09/07/2022
1.0.0 85 09/09/2022
1.0.0-rc1 29 09/24/2022