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

Install-Package Npgsql.NetTopologySuite -Version 6.0.2
dotnet add package Npgsql.NetTopologySuite --version 6.0.2
<PackageReference Include="Npgsql.NetTopologySuite" Version="6.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql.NetTopologySuite --version 6.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Npgsql.NetTopologySuite, 6.0.2"
#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.2

// Install Npgsql.NetTopologySuite as a Cake Tool
#tool nuget:?package=Npgsql.NetTopologySuite&version=6.0.2
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.

NuGet packages (12)

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

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

Statics.Docs

Package Description

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
6.0.2 6,377 12/20/2021
6.0.1 6,357 12/3/2021
6.0.0 16,649 11/9/2021
6.0.0-rc.2 4,429 10/14/2021
6.0.0-rc.1 1,126 9/24/2021
6.0.0-preview7 1,687 8/16/2021
6.0.0-preview6 327 7/31/2021
6.0.0-preview5 487 7/1/2021
6.0.0-preview4 352 5/27/2021
6.0.0-preview3 1,469 4/15/2021
6.0.0-preview2 339 3/11/2021
5.0.11 1,894 11/12/2021
5.0.10 68,371 9/15/2021
5.0.7 155,807 6/13/2021
5.0.5 80,965 5/11/2021
5.0.4 43,574 3/25/2021
5.0.3 95,081 1/26/2021
5.0.2 143,242 1/19/2021
5.0.1.1 41,578 12/12/2020
5.0.0 45,738 11/15/2020
5.0.0-preview1.1 5,592 10/13/2020
5.0.0-alpha1 290 6/17/2020
4.1.9 7,915 4/6/2021
4.1.8 52,324 1/21/2021
4.1.7 9,624 12/12/2020
4.1.6 18,662 11/15/2020
4.1.5 28,440 9/28/2020
4.1.4 49,288 7/19/2020
4.1.3 476,495 1/31/2020
4.1.2 43,042 11/14/2019
4.1.1 19,399 10/2/2019
4.1.0 4,356 9/26/2019
4.1.0-preview2 766 9/4/2019
4.1.0-preview1 365 8/15/2019
4.0.11 2,042 7/19/2020
4.0.10 9,432 9/9/2019
4.0.9 5,733 8/14/2019
4.0.8 1,572 7/18/2019
4.0.7 16,976 5/21/2019
4.0.6 12,326 4/11/2019
4.0.5 13,513 3/3/2019
4.0.4.1 201,244 12/7/2018
1.0.2 56,814 7/20/2018
1.0.1 20,425 5/31/2018
1.0.0 768 5/30/2018
1.0.0-rc1 749 5/8/2018