Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Geophp | 709 | 129 | 23 | 3 years ago | 1 | December 02, 2014 | 75 | other | PHP | |
Advanced geometry operations in PHP | ||||||||||
Doctrine Postgis | 193 | 19 | 1 | 2 months ago | 14 | April 21, 2022 | 2 | mit | PHP | |
Spatial and Geographic Data with PostGIS and Doctrine. | ||||||||||
Pg2b3dm | 191 | 2 days ago | 19 | February 16, 2023 | 3 | mit | JavaScript | |||
Tool for converting from PostGIS to b3dm tiles | ||||||||||
Go.geojson | 160 | 21 | 98 | 2 years ago | 3 | May 22, 2019 | mit | Go | ||
Encoding and decoding GeoJSON <-> Go | ||||||||||
Geospatial | 144 | 3 | 7 | 13 days ago | 18 | December 07, 2021 | 81 | agpl-3.0 | JavaScript | |
Odoo and GIS | ||||||||||
Postgis_adapter | 87 | 11 | 1 | 3 years ago | 17 | March 18, 2011 | 1 | other | Ruby | |
RIP : Fork of spatial_adapter to give postgis more love | ||||||||||
Simplefeatures | 78 | 2 days ago | 65 | June 10, 2022 | 48 | mit | Go | |||
Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification | ||||||||||
Pgh3 | 76 | a year ago | 1 | apache-2.0 | C | |||||
PostgreSQL extension for the H3 hierarchical geospatial indexing system | ||||||||||
Python Postgis | 63 | a year ago | 4 | Python | ||||||
PostGIS helpers for psycopg2 and asyncpg | ||||||||||
Pyspatial | 61 | 4 years ago | 9 | September 10, 2017 | 5 | other | Python | |||
.NET Standard 2.0 library with OGC extensions methods on geometry (NpgsqlTypes.PostgisGeometry
or NetTopologySuite.Geometries.Geometry
) instances, providing strongly typed access to PostGIS functions on server side while using linq2db LINQ to database provider.
NpgsqlTypes.PostgisGeometry
or NetTopologySuite.Geometries.Geometry
gets additional methods, similar to Microsoft.SqlServer.Types.SqlGeometry
OGC Methods on Geometry Instances or
NetTopologySuite plugin for Entity Framework Core for PostgreSQL.
These methods will be translated into PostGIS SQL operations, so evaluation will happen on the server side. Calling these methods on client side results in throwing InvalidOperationException
.
Naming convention follows OGC methods names, starting with ST*
prefix.
Using extensions methods inside LINQ expression (Npgsql 4):
using LinqToDBPostGisNetTopologySuite
using (var db = new PostGisTestDataConnection())
{
NetTopologySuite.Geometries.Point point = new Point(new Coordinate(1492853, 6895498)) { SRID = 3857 };
var dms = db.Select(() => GeometryOutput.STAsLatLonText(point));
var nearestCity = db.Cities
.OrderBy(c => c.Geometry.STDistance(point))
.FirstOrDefault();
var selected = db.Polygons
.Where(p => p.Geometry.STArea() > 150.0)
.OrderBy(p => p.Geometry.STDistance(point))
.ToList();
var stats = db.Polygons
.Select(c => new
{
Id = c.Id,
Name = c.Name,
Area = c.Geometry.STArea(),
Distance = c.Geometry.STDistance(point),
NumPoints = c.Geometry.STNPoints(),
Srid = c.Geometry.STSrId(),
Wkt = c.Geometry.STAsText(),
})
.ToList();
}
[Table("test_geometry", Schema = "public")]
public class PolygonEntity
{
[Column("geom")]
public NetTopologySuite.Geometries.Geometry Geometry { get; set; }
}
[Table("owm_cities", Schema = "public")]
public class CityEntity
{
[Column("geom")]
public NetTopologySuite.Geometries.Geometry Geometry { get; set; }
}
class PostGisTestDataConnection : LinqToDB.Data.DataConnection
{
public ITable<PolygonEntity> Polygons { get { return GetTable<PolygonEntity>(); } }
public ITable<CityEntity> Cities { get { return GetTable<CityEntity>(); } }
}
Developed using MS Visual Studio 2019. Tested on PostgreSQL version 9.6/11, PostGIS version 2.5/3.0/3.1/3.2. Depends on linq2db, Npgsql.
SELECT PostGIS_Full_Version()
query to check PostGIS version.Sql\create_tables.sql
in this database.LinqToDBPostGis.sln
in Visual Studio.App.config
of all projects.geography
data type.