Npgsql.NetTopologySuite 9.0.1
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
|
21 |
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
|
7 |
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
|
6 |
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
|
5 |
Weasel.Postgresql
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
|
4 |
.NET 6.0
- Npgsql (>= 9.0.1)
- NetTopologySuite (>= 2.5.0)
- NetTopologySuite.IO.PostGIS (>= 2.1.0)
Version | Downloads | Last updated |
---|---|---|
9.0.1 | 1 | 11/20/2024 |
9.0.0 | 2 | 11/20/2024 |
8.0.6 | 3 | 11/20/2024 |
8.0.5 | 3 | 10/17/2024 |
8.0.4 | 3 | 10/12/2024 |
8.0.3 | 4 | 09/17/2024 |
8.0.2 | 4 | 09/22/2024 |
8.0.1 | 4 | 09/17/2024 |
8.0.0 | 5 | 09/17/2024 |
8.0.0-rtm | 3 | 09/17/2024 |
8.0.0-rc.2 | 4 | 09/17/2024 |
8.0.0-preview.4 | 2 | 10/12/2024 |
8.0.0-preview.3 | 2 | 10/12/2024 |
8.0.0-preview.2 | 2 | 10/12/2024 |
8.0.0-preview.1 | 5 | 09/18/2024 |
7.0.9 | 3 | 11/19/2024 |
7.0.8 | 4 | 09/22/2024 |
7.0.7 | 3 | 10/12/2024 |
7.0.6 | 4 | 09/19/2024 |
7.0.4 | 3 | 10/12/2024 |
7.0.2 | 3 | 10/12/2024 |
7.0.1 | 5 | 09/17/2024 |
7.0.0 | 3 | 10/12/2024 |
7.0.0-rc.2 | 2 | 10/12/2024 |
7.0.0-rc.1 | 2 | 10/12/2024 |
7.0.0-preview.7 | 2 | 10/12/2024 |
7.0.0-preview.6 | 2 | 10/12/2024 |
7.0.0-preview.5 | 4 | 10/12/2024 |
7.0.0-preview.4 | 2 | 10/12/2024 |
7.0.0-preview.3 | 2 | 10/12/2024 |
7.0.0-preview.2 | 3 | 09/18/2024 |
7.0.0-preview.1 | 4 | 09/21/2024 |
6.0.13 | 2 | 11/20/2024 |
6.0.12 | 2 | 10/12/2024 |
6.0.11 | 2 | 10/12/2024 |
6.0.10 | 4 | 09/18/2024 |
6.0.9 | 3 | 10/12/2024 |
6.0.8 | 5 | 09/17/2024 |
6.0.7 | 6 | 09/18/2024 |
6.0.6 | 4 | 09/18/2024 |
6.0.5 | 4 | 09/22/2024 |
6.0.4 | 4 | 09/22/2024 |
6.0.3 | 3 | 10/12/2024 |
6.0.2 | 4 | 09/18/2024 |
6.0.1 | 4 | 09/22/2024 |
6.0.0 | 3 | 10/12/2024 |
6.0.0-rc.2 | 2 | 10/12/2024 |
6.0.0-rc.1 | 3 | 09/17/2024 |
6.0.0-preview7 | 2 | 10/12/2024 |
6.0.0-preview6 | 2 | 10/12/2024 |
6.0.0-preview5 | 3 | 09/18/2024 |
6.0.0-preview4 | 3 | 09/21/2024 |
6.0.0-preview3 | 5 | 09/17/2024 |
6.0.0-preview2 | 3 | 09/17/2024 |
5.0.18 | 2 | 10/12/2024 |
5.0.17 | 6 | 09/18/2024 |
5.0.16 | 4 | 09/17/2024 |
5.0.15 | 2 | 10/12/2024 |
5.0.14 | 3 | 09/18/2024 |
5.0.13 | 3 | 09/19/2024 |
5.0.12 | 2 | 10/12/2024 |
5.0.11 | 3 | 09/21/2024 |
5.0.10 | 2 | 10/12/2024 |
5.0.7 | 4 | 09/18/2024 |
5.0.5 | 4 | 09/22/2024 |
5.0.4 | 3 | 10/12/2024 |
5.0.3 | 4 | 09/22/2024 |
5.0.2 | 4 | 10/12/2024 |
5.0.1.1 | 6 | 09/17/2024 |
5.0.0 | 4 | 09/22/2024 |
5.0.0-preview1.1 | 2 | 10/12/2024 |
5.0.0-alpha1 | 3 | 09/17/2024 |
4.1.14 | 4 | 09/17/2024 |
4.1.13 | 3 | 09/22/2024 |
4.1.12 | 4 | 09/17/2024 |
4.1.11 | 1 | 10/12/2024 |
4.1.9 | 3 | 10/12/2024 |
4.1.8 | 4 | 09/18/2024 |
4.1.7 | 4 | 09/19/2024 |
4.1.6 | 3 | 09/22/2024 |
4.1.5 | 3 | 09/18/2024 |
4.1.4 | 1 | 11/20/2024 |
4.1.3 | 3 | 09/18/2024 |
4.1.2 | 2 | 10/12/2024 |
4.1.1 | 4 | 09/17/2024 |
4.1.0 | 2 | 10/12/2024 |
4.1.0-preview2 | 4 | 09/17/2024 |
4.1.0-preview1 | 4 | 09/17/2024 |
4.0.17 | 1 | 10/12/2024 |
4.0.16 | 4 | 09/17/2024 |
4.0.15 | 3 | 09/18/2024 |
4.0.14 | 4 | 09/17/2024 |
4.0.13 | 2 | 10/12/2024 |
4.0.11 | 2 | 10/12/2024 |
4.0.10 | 3 | 09/22/2024 |
4.0.9 | 4 | 09/22/2024 |
4.0.8 | 4 | 09/18/2024 |
4.0.7 | 2 | 10/12/2024 |
4.0.6 | 2 | 10/12/2024 |
4.0.5 | 2 | 10/12/2024 |
4.0.4.1 | 2 | 10/12/2024 |
1.0.2 | 2 | 10/12/2024 |
1.0.1 | 2 | 10/12/2024 |
1.0.0 | 3 | 09/22/2024 |
1.0.0-rc1 | 4 | 09/22/2024 |