Npgsql.NetTopologySuite 7.0.2

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.
dotnet add package Npgsql.NetTopologySuite --version 7.0.2
NuGet\Install-Package Npgsql.NetTopologySuite -Version 7.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Npgsql.NetTopologySuite" Version="7.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql.NetTopologySuite --version 7.0.2
#r "nuget: Npgsql.NetTopologySuite, 7.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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=7.0.2

// Install Npgsql.NetTopologySuite as a Cake Tool
#tool nuget:?package=Npgsql.NetTopologySuite&version=7.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, 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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.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 net481
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 (18)

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.

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, Clickhouse orm, QuestDB orm, MsAccess orm.
npgsql/efcore.pg
Entity Framework Core provider for PostgreSQL
TeslaFly01/SmartSqlT
🔥🔥🔥 SmartSQL 是一款方便、快捷的数据库文档查询、导出工具!该工具从最初支持CHM文档格式开始,通过不断地探索开发、集思广益和不断改进,又陆续支持Word、Excel、PDF、Html、Xml、Json、MarkDown等文档格式的导出。同时支持SqlServer、MySql、PostgreSQL、SQLite等多种数据库的文档查询和导出功能。
Version Downloads Last updated
8.0.0-preview.2 123 3/20/2023
8.0.0-preview.1 429 3/3/2023
7.0.2 30,972 2/15/2023
7.0.1 59,704 12/17/2022
7.0.0 45,004 11/9/2022
7.0.0-rc.2 2,634 10/11/2022
7.0.0-rc.1 537 9/16/2022
7.0.0-preview.7 6,563 8/9/2022
7.0.0-preview.6 1,713 7/13/2022
7.0.0-preview.5 1,389 6/19/2022
7.0.0-preview.4 924 5/11/2022
7.0.0-preview.3 665 4/19/2022
7.0.0-preview.2 563 3/16/2022
7.0.0-preview.1 169 2/17/2022
6.0.9 3,668 2/15/2023
6.0.8 31,439 12/17/2022
6.0.7 421,237 9/16/2022
6.0.6 157,209 8/4/2022
6.0.5 129,552 6/19/2022
6.0.4 217,430 4/19/2022
6.0.3 537,043 1/27/2022
6.0.2 99,673 12/20/2021
6.0.1 33,182 12/3/2021
6.0.0 72,921 11/9/2021
6.0.0-rc.2 11,323 10/14/2021
6.0.0-rc.1 1,207 9/24/2021
6.0.0-preview7 1,760 8/16/2021
6.0.0-preview6 401 7/31/2021
6.0.0-preview5 839 7/1/2021
6.0.0-preview4 437 5/27/2021
6.0.0-preview3 8,076 4/15/2021
6.0.0-preview2 420 3/11/2021
5.0.16 208 2/15/2023
5.0.15 697 9/16/2022
5.0.14 4,092 6/19/2022
5.0.13 1,335 4/26/2022
5.0.12 4,767 2/1/2022
5.0.11 87,809 11/12/2021
5.0.10 207,749 9/15/2021
5.0.7 235,744 6/13/2021
5.0.5 170,351 5/11/2021
5.0.4 65,513 3/25/2021
5.0.3 187,119 1/26/2021
5.0.2 187,915 1/19/2021
5.0.1.1 49,858 12/12/2020
5.0.0 81,250 11/15/2020
5.0.0-preview1.1 6,193 10/13/2020
5.0.0-alpha1 359 6/17/2020
4.1.12 1,039 6/19/2022
4.1.11 1,138 4/26/2022
4.1.9 48,677 4/6/2021
4.1.8 80,877 1/21/2021
4.1.7 12,263 12/12/2020
4.1.6 23,123 11/15/2020
4.1.5 43,659 9/28/2020
4.1.4 63,455 7/19/2020
4.1.3 619,605 1/31/2020
4.1.2 52,440 11/14/2019
4.1.1 22,696 10/2/2019
4.1.0 7,303 9/26/2019
4.1.0-preview2 845 9/4/2019
4.1.0-preview1 444 8/15/2019
4.0.13 775 6/19/2022
4.0.11 2,302 7/19/2020
4.0.10 10,079 9/9/2019
4.0.9 7,227 8/14/2019
4.0.8 1,743 7/18/2019
4.0.7 23,125 5/21/2019
4.0.6 15,837 4/11/2019
4.0.5 17,067 3/3/2019
4.0.4.1 248,159 12/7/2018
1.0.2 62,297 7/20/2018
1.0.1 22,276 5/31/2018
1.0.0 1,070 5/30/2018
1.0.0-rc1 911 5/8/2018