Npgsql.NetTopologySuite
7.0.4
See the version list below for details.
dotnet add package Npgsql.NetTopologySuite --version 7.0.4
NuGet\Install-Package Npgsql.NetTopologySuite -Version 7.0.4
<PackageReference Include="Npgsql.NetTopologySuite" Version="7.0.4" />
paket add Npgsql.NetTopologySuite --version 7.0.4
#r "nuget: Npgsql.NetTopologySuite, 7.0.4"
// Install Npgsql.NetTopologySuite as a Cake Addin
#addin nuget:?package=Npgsql.NetTopologySuite&version=7.0.4
// Install Npgsql.NetTopologySuite as a Cake Tool
#tool nuget:?package=Npgsql.NetTopologySuite&version=7.0.4
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- NetTopologySuite (>= 2.5.0)
- NetTopologySuite.IO.PostGIS (>= 2.1.0)
- Npgsql (>= 7.0.4)
NuGet packages (20)
Showing the top 5 NuGet packages that depend on Npgsql.NetTopologySuite:
Package | Downloads |
---|---|
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider. |
|
FreeSql.Provider.PostgreSQL
FreeSql 数据库实现,基于 PostgreSQL 9.5 |
|
Mars.Core
The runtime core provides step-based execution for multi-agent simulations in distributed environments as well as polyglot result output with different output types such as (MongoDB, PostgreSQL, Redis, CSV, GeoJson Socket, ...). For furher details please use the handbook: https://mars-group.org/wp-content/uploads/2018/09/mars-modelling-handbook.pdf |
|
FSharp.Data.Npgsql
F# type provider to support statically typed access to input parameters and result sets of sql statements in an idiomatic F# way. Data modifications via statically typed tables. |
|
NHibernate.Spatial.PostGis
NHibernate.Spatial is a library of spatial extensions for NHibernate, and allows you to connect NHibernate to a spatially enabled database and manipulate geometries in HQL or in .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience. |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on Npgsql.NetTopologySuite:
Repository | Stars |
---|---|
dotnetcore/FreeSql
🦄 .NET orm, C# orm, VB.NET orm, Mysql orm, Postgresql orm, SqlServer orm, Oracle orm, Sqlite orm, Firebird orm, 达梦 orm, 人大金仓 orm, 神通 orm, 翰高 orm, 南大通用 orm, 虚谷 orm, 国产 orm, Clickhouse orm, QuestDB orm, MsAccess orm.
|
|
npgsql/efcore.pg
Entity Framework Core provider for PostgreSQL
|
|
victor-wiki/DatabaseManager
A simple tool for databases : SqlServer, MySql, Oracle, Postgres and SQLite
|
Version | Downloads | Last updated |
---|---|---|
8.0.0-preview.4 | 5,739 | 5/17/2023 |
8.0.0-preview.3 | 2,303 | 4/24/2023 |
8.0.0-preview.2 | 599 | 3/20/2023 |
8.0.0-preview.1 | 788 | 3/3/2023 |
7.0.6 | 3,079 | 9/14/2023 |
7.0.4 | 209,124 | 4/24/2023 |
7.0.2 | 411,637 | 2/15/2023 |
7.0.1 | 135,634 | 12/17/2022 |
7.0.0 | 97,410 | 11/9/2022 |
7.0.0-rc.2 | 2,826 | 10/11/2022 |
7.0.0-rc.1 | 642 | 9/16/2022 |
7.0.0-preview.7 | 8,941 | 8/9/2022 |
7.0.0-preview.6 | 1,800 | 7/13/2022 |
7.0.0-preview.5 | 1,705 | 6/19/2022 |
7.0.0-preview.4 | 1,135 | 5/11/2022 |
7.0.0-preview.3 | 697 | 4/19/2022 |
7.0.0-preview.2 | 615 | 3/16/2022 |
7.0.0-preview.1 | 218 | 2/17/2022 |
6.0.10 | 574 | 9/14/2023 |
6.0.9 | 30,686 | 2/15/2023 |
6.0.8 | 178,961 | 12/17/2022 |
6.0.7 | 589,832 | 9/16/2022 |
6.0.6 | 203,282 | 8/4/2022 |
6.0.5 | 160,576 | 6/19/2022 |
6.0.4 | 264,948 | 4/19/2022 |
6.0.3 | 607,811 | 1/27/2022 |
6.0.2 | 133,370 | 12/20/2021 |
6.0.1 | 39,248 | 12/3/2021 |
6.0.0 | 144,559 | 11/9/2021 |
6.0.0-rc.2 | 11,426 | 10/14/2021 |
6.0.0-rc.1 | 1,246 | 9/24/2021 |
6.0.0-preview7 | 1,811 | 8/16/2021 |
6.0.0-preview6 | 436 | 7/31/2021 |
6.0.0-preview5 | 968 | 7/1/2021 |
6.0.0-preview4 | 470 | 5/27/2021 |
6.0.0-preview3 | 8,351 | 4/15/2021 |
6.0.0-preview2 | 490 | 3/11/2021 |
5.0.17 | 80 | 9/14/2023 |
5.0.16 | 948 | 2/15/2023 |
5.0.15 | 1,124 | 9/16/2022 |
5.0.14 | 5,397 | 6/19/2022 |
5.0.13 | 1,719 | 4/26/2022 |
5.0.12 | 5,238 | 2/1/2022 |
5.0.11 | 136,528 | 11/12/2021 |
5.0.10 | 244,175 | 9/15/2021 |
5.0.7 | 253,442 | 6/13/2021 |
5.0.5 | 179,407 | 5/11/2021 |
5.0.4 | 70,854 | 3/25/2021 |
5.0.3 | 215,241 | 1/26/2021 |
5.0.2 | 200,904 | 1/19/2021 |
5.0.1.1 | 51,109 | 12/12/2020 |
5.0.0 | 92,389 | 11/15/2020 |
5.0.0-preview1.1 | 6,248 | 10/13/2020 |
5.0.0-alpha1 | 399 | 6/17/2020 |
4.1.12 | 6,107 | 6/19/2022 |
4.1.11 | 1,234 | 4/26/2022 |
4.1.9 | 68,776 | 4/6/2021 |
4.1.8 | 89,054 | 1/21/2021 |
4.1.7 | 13,116 | 12/12/2020 |
4.1.6 | 25,350 | 11/15/2020 |
4.1.5 | 49,246 | 9/28/2020 |
4.1.4 | 69,694 | 7/19/2020 |
4.1.3 | 640,132 | 1/31/2020 |
4.1.2 | 56,034 | 11/14/2019 |
4.1.1 | 24,389 | 10/2/2019 |
4.1.0 | 12,784 | 9/26/2019 |
4.1.0-preview2 | 884 | 9/4/2019 |
4.1.0-preview1 | 468 | 8/15/2019 |
4.0.13 | 944 | 6/19/2022 |
4.0.11 | 2,676 | 7/19/2020 |
4.0.10 | 10,654 | 9/9/2019 |
4.0.9 | 7,870 | 8/14/2019 |
4.0.8 | 1,813 | 7/18/2019 |
4.0.7 | 23,411 | 5/21/2019 |
4.0.6 | 16,944 | 4/11/2019 |
4.0.5 | 17,928 | 3/3/2019 |
4.0.4.1 | 266,978 | 12/7/2018 |
1.0.2 | 63,482 | 7/20/2018 |
1.0.1 | 23,815 | 5/31/2018 |
1.0.0 | 1,302 | 5/30/2018 |
1.0.0-rc1 | 967 | 5/8/2018 |