Npgsql.NetTopologySuite 6.0.4 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET Standard 2.0
There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Npgsql.NetTopologySuite -Version 6.0.4
dotnet add package Npgsql.NetTopologySuite --version 6.0.4
<PackageReference Include="Npgsql.NetTopologySuite" Version="6.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql.NetTopologySuite --version 6.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Npgsql.NetTopologySuite, 6.0.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Npgsql.NetTopologySuite as a Cake Addin
#addin nuget:?package=Npgsql.NetTopologySuite&version=6.0.4

// Install Npgsql.NetTopologySuite as a Cake Tool
#tool nuget:?package=Npgsql.NetTopologySuite&version=6.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (14)

Showing the top 5 NuGet packages that depend on Npgsql.NetTopologySuite:

Package Downloads
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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.

GIS.Persistence.PostgreSQL

GIS.Persistence.PostgreSQL

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Npgsql.NetTopologySuite:

Repository Stars
dotnetcore/FreeSql
🦄 .NET orm, Mysql orm, Postgresql orm, SqlServer orm, Oracle orm, Sqlite orm, Firebird orm, 达梦 orm, 人大金仓 orm, 神通 orm, 翰高 orm, 南大通用 orm, Click house orm, MsAccess orm.
npgsql/efcore.pg
Entity Framework Core provider for PostgreSQL
Version Downloads Last updated
7.0.0-preview.4 278 5/11/2022
7.0.0-preview.3 499 4/19/2022
7.0.0-preview.2 494 3/16/2022
7.0.0-preview.1 109 2/17/2022
6.0.4 31,524 4/19/2022
6.0.3 149,179 1/27/2022
6.0.2 48,667 12/20/2021
6.0.1 19,654 12/3/2021
6.0.0 31,707 11/9/2021
6.0.0-rc.2 8,536 10/14/2021
6.0.0-rc.1 1,158 9/24/2021
6.0.0-preview7 1,715 8/16/2021
6.0.0-preview6 355 7/31/2021
6.0.0-preview5 653 7/1/2021
6.0.0-preview4 385 5/27/2021
6.0.0-preview3 4,554 4/15/2021
6.0.0-preview2 366 3/11/2021
5.0.13 238 4/26/2022
5.0.12 1,829 2/1/2022
5.0.11 10,368 11/12/2021
5.0.10 126,190 9/15/2021
5.0.7 193,547 6/13/2021
5.0.5 149,260 5/11/2021
5.0.4 53,383 3/25/2021
5.0.3 116,717 1/26/2021
5.0.2 159,874 1/19/2021
5.0.1.1 45,217 12/12/2020
5.0.0 56,001 11/15/2020
5.0.0-preview1.1 6,031 10/13/2020
5.0.0-alpha1 311 6/17/2020
4.1.11 219 4/26/2022
4.1.9 20,736 4/6/2021
4.1.8 63,947 1/21/2021
4.1.7 10,492 12/12/2020
4.1.6 20,275 11/15/2020
4.1.5 31,762 9/28/2020
4.1.4 52,546 7/19/2020
4.1.3 523,187 1/31/2020
4.1.2 45,829 11/14/2019
4.1.1 20,256 10/2/2019
4.1.0 5,399 9/26/2019
4.1.0-preview2 793 9/4/2019
4.1.0-preview1 391 8/15/2019
4.0.11 2,130 7/19/2020
4.0.10 9,671 9/9/2019
4.0.9 6,520 8/14/2019
4.0.8 1,617 7/18/2019
4.0.7 19,075 5/21/2019
4.0.6 13,468 4/11/2019
4.0.5 15,462 3/3/2019
4.0.4.1 211,819 12/7/2018
1.0.2 58,601 7/20/2018
1.0.1 20,531 5/31/2018
1.0.0 844 5/30/2018
1.0.0-rc1 807 5/8/2018