{"repo":"bosth/plpygis","free":true,"listed":false,"github":"https://github.com/bosth/plpygis","clone":"git clone https://github.com/bosth/plpygis.git","description":"PL/Python for PostGIS","language":"Python","stars":24,"topics":["geospatial","plpython","postgresql"],"license":"GPL-3.0","category":"databases-storage","readme_excerpt":"plpygis plpygis is a pure Python module with no dependencies that can convert geometries between Well-known binary (WKB/EWKB), Well-known Text (WKT/EWKT) and GeoJSON representations. plpygis is mainly intended for use in PostgreSQL PL/Python functions to augment PostGIS's native capabilities. Basic usage plpygis implements several subclasses of the Geometry class, such as Point , LineString , MultiPolygon and so on: Usage with PostGIS plpygis is designed to provide an easy way to implement PL/Python functions that accept geometry arguments or return geometry results. The following example will take a PostGIS geometry(Point) and use an external service to create a geometry(PointZ) . The Geometry() constructor will convert a PostGIS geometry that has been passed as a parameter to the PL/Python function into one of its plpygis subclasses. A Geometry that is returned from the PL/Python function will automatically be converted back to a PostGIS geometry . The function above can be called as part of an SQL query: Documentation Full plpygis documentation is available at .","default_branch":null,"files":null,"tree":[],"storefront":"/r/bosth","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bosth/plpygis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}