![]() |
VOOZH | about |
dotnet add package Npgsql.NetTopologySuite --version 10.0.3
NuGet\Install-Package Npgsql.NetTopologySuite -Version 10.0.3
<PackageReference Include="Npgsql.NetTopologySuite" Version="10.0.3" />
<PackageVersion Include="Npgsql.NetTopologySuite" Version="10.0.3" />Directory.Packages.props
<PackageReference Include="Npgsql.NetTopologySuite" />Project file
paket add Npgsql.NetTopologySuite --version 10.0.3
#r "nuget: Npgsql.NetTopologySuite, 10.0.3"
#:package Npgsql.NetTopologySuite@10.0.3
#addin nuget:?package=Npgsql.NetTopologySuite&version=10.0.3Install as a Cake Addin
#tool nuget:?package=Npgsql.NetTopologySuite&version=10.0.3Install 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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 |
|
|
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 .NET code using NetTopologySuite, providing you with a fully integrated GIS programming experience. |
Showing the top 5 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.
|
|
|
borisdj/EFCore.BulkExtensions
Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite, Oracle
|
|
|
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
Database management tool for: SqlServer, MySql, Oracle, Postgres and SQLite
|
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.3 | 64,836 | 5/27/2026 |
| 10.0.2 | 495,615 | 3/12/2026 |
| 10.0.1 | 163,356 | 12/19/2025 |
| 10.0.0 | 733,666 | 11/22/2025 |
| 10.0.0-rc.1 | 13,332 | 10/5/2025 |
| 9.0.5 | 8,506 | 3/12/2026 |
| 9.0.4 | 1,949,826 | 10/5/2025 |
| 9.0.3 | 2,118,056 | 2/24/2025 |
| 9.0.2 | 2,181,078 | 12/7/2024 |
| 9.0.1 | 177,045 | 11/19/2024 |
| 9.0.0 | 62,601 | 11/18/2024 |
| 8.0.9 | 2,760 | 3/12/2026 |
| 8.0.8 | 46,753 | 10/5/2025 |
| 8.0.7 | 106,194 | 2/24/2025 |
| 8.0.6 | 2,748,714 | 11/18/2024 |
| 8.0.5 | 722,730 | 10/13/2024 |
| 7.0.10 | 24,399 | 3/17/2025 |
| 7.0.9 | 13,742 | 11/18/2024 |
| 6.0.13 | 19,079 | 11/18/2024 |
| 6.0.12 | 31,343 | 9/10/2024 |