Npgsql.NetTopologySuite 9.0.2
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.
|
31 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
32 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
35 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
37 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
38 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
39 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
40 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
41 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
44 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
45 |
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.
|
60 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
61 |
.NET 6.0
- Npgsql (>= 9.0.2)
- NetTopologySuite (>= 2.5.0)
- NetTopologySuite.IO.PostGIS (>= 2.1.0)
Version | Downloads | Last updated |
---|---|---|
9.0.2 | 3 | 12/12/2024 |
9.0.1 | 3 | 11/26/2024 |
9.0.0 | 3 | 11/26/2024 |
8.0.6 | 2 | 11/26/2024 |
8.0.5 | 7 | 10/14/2024 |
8.0.4 | 9 | 09/12/2024 |
8.0.3 | 14 | 05/22/2024 |
8.0.2 | 15 | 02/20/2024 |
8.0.1 | 17 | 12/08/2023 |
8.0.0 | 18 | 11/21/2023 |
8.0.0-rtm | 12 | 11/21/2023 |
8.0.0-rc.2 | 18 | 10/13/2023 |
8.0.0-preview.4 | 35 | 06/06/2023 |
8.0.0-preview.3 | 43 | 05/22/2023 |
8.0.0-preview.2 | 22 | 04/04/2023 |
8.0.0-preview.1 | 39 | 04/04/2023 |
7.0.9 | 3 | 11/26/2024 |
7.0.8 | 9 | 09/12/2024 |
7.0.7 | 14 | 05/22/2024 |
7.0.6 | 21 | 09/26/2023 |
7.0.4 | 13 | 06/06/2023 |
7.0.2 | 23 | 04/04/2023 |
7.0.1 | 33 | 01/15/2023 |
7.0.0 | 33 | 12/02/2022 |
7.0.0-rc.2 | 25 | 08/22/2023 |
7.0.0-rc.1 | 27 | 09/22/2022 |
7.0.0-preview.7 | 38 | 08/19/2022 |
7.0.0-preview.6 | 30 | 09/21/2022 |
7.0.0-preview.5 | 25 | 06/13/2023 |
7.0.0-preview.4 | 44 | 09/24/2022 |
7.0.0-preview.3 | 91 | 09/24/2022 |
7.0.0-preview.2 | 55 | 09/21/2022 |
7.0.0-preview.1 | 77 | 09/24/2022 |
6.0.13 | 3 | 11/26/2024 |
6.0.12 | 8 | 09/12/2024 |
6.0.11 | 13 | 05/22/2024 |
6.0.10 | 18 | 09/30/2023 |
6.0.9 | 31 | 04/04/2023 |
6.0.8 | 32 | 01/15/2023 |
6.0.7 | 34 | 09/24/2022 |
6.0.6 | 27 | 09/10/2022 |
6.0.5 | 34 | 09/09/2022 |
6.0.4 | 57 | 09/08/2022 |
6.0.3 | 64 | 06/27/2022 |
6.0.2 | 30 | 09/09/2022 |
6.0.1 | 20 | 09/11/2022 |
6.0.0 | 57 | 09/10/2022 |
6.0.0-rc.2 | 41 | 09/24/2022 |
6.0.0-rc.1 | 18 | 09/24/2022 |
6.0.0-preview7 | 44 | 09/24/2022 |
6.0.0-preview6 | 89 | 09/24/2022 |
6.0.0-preview5 | 24 | 09/24/2022 |
6.0.0-preview4 | 23 | 09/24/2022 |
6.0.0-preview3 | 38 | 09/23/2022 |
6.0.0-preview2 | 27 | 09/21/2022 |
5.0.18 | 10 | 05/22/2024 |
5.0.17 | 20 | 09/28/2023 |
5.0.16 | 44 | 04/04/2023 |
5.0.15 | 20 | 09/22/2022 |
5.0.14 | 26 | 06/06/2023 |
5.0.13 | 28 | 09/21/2022 |
5.0.12 | 49 | 09/24/2022 |
5.0.11 | 65 | 09/24/2022 |
5.0.10 | 41 | 09/22/2022 |
5.0.7 | 26 | 09/09/2022 |
5.0.5 | 43 | 09/13/2022 |
5.0.4 | 47 | 09/10/2022 |
5.0.3 | 25 | 09/09/2022 |
5.0.2 | 89 | 09/09/2022 |
5.0.1.1 | 34 | 09/21/2022 |
5.0.0 | 19 | 09/09/2022 |
5.0.0-preview1.1 | 33 | 09/23/2022 |
5.0.0-alpha1 | 92 | 09/24/2022 |
4.1.14 | 11 | 05/22/2024 |
4.1.13 | 9 | 05/22/2024 |
4.1.12 | 24 | 05/12/2023 |
4.1.11 | 39 | 09/24/2022 |
4.1.9 | 68 | 09/09/2022 |
4.1.8 | 36 | 09/14/2022 |
4.1.7 | 37 | 09/09/2022 |
4.1.6 | 35 | 09/09/2022 |
4.1.5 | 82 | 09/11/2022 |
4.1.4 | 32 | 09/10/2022 |
4.1.3 | 50 | 09/11/2022 |
4.1.2 | 93 | 09/23/2022 |
4.1.1 | 72 | 09/10/2022 |
4.1.0 | 27 | 09/10/2022 |
4.1.0-preview2 | 55 | 09/21/2022 |
4.1.0-preview1 | 21 | 09/17/2022 |
4.0.17 | 15 | 06/11/2024 |
4.0.16 | 15 | 05/22/2024 |
4.0.15 | 15 | 05/22/2024 |
4.0.14 | 10 | 05/22/2024 |
4.0.13 | 36 | 09/24/2022 |
4.0.11 | 83 | 09/24/2022 |
4.0.10 | 25 | 08/22/2023 |
4.0.9 | 40 | 09/10/2022 |
4.0.8 | 103 | 09/07/2022 |
4.0.7 | 75 | 09/13/2022 |
4.0.6 | 31 | 09/09/2022 |
4.0.5 | 56 | 09/09/2022 |
4.0.4.1 | 26 | 09/24/2022 |
1.0.2 | 45 | 09/09/2022 |
1.0.1 | 21 | 09/07/2022 |
1.0.0 | 73 | 09/09/2022 |
1.0.0-rc1 | 19 | 09/24/2022 |