Npgsql.NetTopologySuite 9.0.4

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Npgsql.NetTopologySuite --version 9.0.4
                    
NuGet\Install-Package Npgsql.NetTopologySuite -Version 9.0.4
                    
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="9.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Npgsql.NetTopologySuite" Version="9.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Npgsql.NetTopologySuite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Npgsql.NetTopologySuite --version 9.0.4
                    
#r "nuget: Npgsql.NetTopologySuite, 9.0.4"
                    
#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.
#:package Npgsql.NetTopologySuite@9.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Npgsql.NetTopologySuite&version=9.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Npgsql.NetTopologySuite&version=9.0.4
                    
Install as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (34)

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.

Weasel.Postgresql

Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten

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 documentation: https://www.mars-group.org/docs/tutorial/intro

learun.database

力软ORM

GitHub repositories (4)

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

Repository Stars
dotnetcore/FreeSql
.NET aot orm, VB.NET/C# orm, Mysql/PostgreSQL/SqlServer/Oracle orm, Sqlite/Firebird/Clickhouse/DuckDB orm, 达梦/金仓/虚谷/翰高/高斯 orm, 神通 orm, 南大通用 orm, 国产 orm, TDengine 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等多种数据库的文档查询和导出功能。
victor-wiki/DatabaseManager
A simple tool for databases : SqlServer, MySql, Oracle, Postgres and SQLite
Version Downloads Last Updated
10.0.0-rc.1 3,446 10/5/2025
9.0.4 23,954 10/5/2025
9.0.3 976,283 2/24/2025
9.0.2 1,098,226 12/7/2024
9.0.1 118,374 11/19/2024
9.0.0 20,590 11/18/2024
8.0.8 1,283 10/5/2025
8.0.7 59,161 2/24/2025
8.0.6 1,728,689 11/18/2024
8.0.5 457,261 10/13/2024
8.0.4 166,904 9/10/2024
8.0.3 2,143,844 5/9/2024
8.0.2 547,935 2/10/2024
8.0.1 33,172 12/4/2023
8.0.0 516,754 11/21/2023
8.0.0-rtm 245 11/20/2023
8.0.0-rc.2 16,998 10/11/2023
8.0.0-preview.4 20,336 5/17/2023
8.0.0-preview.3 6,573 4/24/2023
8.0.0-preview.2 819 3/20/2023
8.0.0-preview.1 1,021 3/3/2023
7.0.10 1,846 3/17/2025
7.0.9 2,279 11/18/2024
7.0.8 6,259 9/10/2024
7.0.7 143,502 5/9/2024
7.0.6 349,074 9/14/2023
7.0.4 536,123 4/24/2023
7.0.2 1,534,700 2/15/2023
7.0.1 233,742 12/17/2022
7.0.0 250,191 11/9/2022
7.0.0-rc.2 3,098 10/11/2022
7.0.0-rc.1 957 9/16/2022
7.0.0-preview.7 9,166 8/9/2022
7.0.0-preview.6 2,001 7/13/2022
7.0.0-preview.5 2,997 6/19/2022
7.0.0-preview.4 2,259 5/11/2022
7.0.0-preview.3 897 4/19/2022
7.0.0-preview.2 828 3/16/2022
7.0.0-preview.1 449 2/17/2022
6.0.13 6,039 11/18/2024
6.0.12 13,514 9/10/2024
6.0.11 124,887 5/9/2024
6.0.10 138,131 9/14/2023
6.0.9 76,356 2/15/2023
6.0.8 472,694 12/17/2022
6.0.7 756,644 9/16/2022
6.0.6 265,862 8/4/2022
6.0.5 248,238 6/19/2022
6.0.4 349,822 4/19/2022
6.0.3 784,621 1/27/2022
6.0.2 226,254 12/20/2021
6.0.1 48,815 12/3/2021
6.0.0 305,735 11/9/2021
6.0.0-rc.2 11,746 10/14/2021
6.0.0-rc.1 1,464 9/24/2021
6.0.0-preview7 2,104 8/16/2021
6.0.0-preview6 727 7/31/2021
6.0.0-preview5 1,531 7/1/2021
6.0.0-preview4 786 5/27/2021
6.0.0-preview3 8,789 4/15/2021
6.0.0-preview2 879 3/11/2021
5.0.18 33,327 5/9/2024
5.0.17 1,123 9/14/2023
5.0.16 2,349 2/15/2023
5.0.15 3,220 9/16/2022
5.0.14 7,707 6/19/2022
5.0.13 2,732 4/26/2022
5.0.12 5,901 2/1/2022
5.0.11 332,247 11/12/2021
5.0.10 345,391 9/15/2021
5.0.7 348,365 6/13/2021
5.0.5 196,455 5/11/2021
5.0.4 78,522 3/25/2021
5.0.3 265,476 1/26/2021
5.0.2 225,576 1/19/2021
5.0.1.1 53,897 12/12/2020
5.0.0 101,714 11/15/2020
5.0.0-preview1.1 6,530 10/13/2020
5.0.0-alpha1 653 6/17/2020
4.1.14 6,918 5/18/2024
4.1.13 12,875 5/9/2024
4.1.12 34,446 6/19/2022
4.1.11 1,760 4/26/2022
4.1.9 102,145 4/6/2021
4.1.8 119,379 1/21/2021
4.1.7 31,688 12/12/2020
4.1.6 38,675 11/15/2020
4.1.5 64,811 9/28/2020
4.1.4 90,341 7/19/2020
4.1.3 726,954 1/31/2020
4.1.2 60,813 11/14/2019
4.1.1 26,369 10/2/2019
4.1.0 43,371 9/26/2019
4.1.0-preview2 1,212 9/4/2019
4.1.0-preview1 724 8/15/2019
4.0.17 607 6/10/2024
4.0.16 509 5/18/2024
4.0.15 449 5/18/2024
4.0.14 475 5/9/2024
4.0.13 1,629 6/19/2022
4.0.11 4,728 7/19/2020
4.0.10 12,166 9/9/2019
4.0.9 12,267 8/14/2019
4.0.8 2,382 7/18/2019
4.0.7 24,190 5/21/2019
4.0.6 20,940 4/11/2019
4.0.5 22,642 3/3/2019
4.0.4.1 296,681 12/7/2018
1.0.2 67,532 7/20/2018
1.0.1 35,886 5/31/2018
1.0.0 3,073 5/30/2018
1.0.0-rc1 1,566 5/8/2018