postgis-promise v1.0.0
postgis-promise
This module is a transparent wrapper around the excellent
pg-promise library
that allows the automatic parsing
of several PostGIS Geometry types to GeoJSON.
This is an excellent
The library matches types to the correct OIDs
on initialization, prior to any queries being run.
It is based on the pg-postgis-types
and wkx libraries.
The only change to the pg-promise API is the inclusion of a {geoJSON} tag
in the library initialization options. This optional key, which
is false by default, automatically marshals Geometry types to GeoJSON
upon query deserialization. It is a cleaner and (probably) more performant
alternative to littering your SQL with ST_AsGeoJSON(...) functions.
If you want to deserialize a single geometry without wrapping the entire
database connection, use the wkx
geometry parser directly.
2017 — 2019, Daven Quinn
6 years ago