pg_featureserv
![.github/workflows/package.yml](https://github.com/CrunchyData/pg_featureserv/actions/workflows/ci.yml/badge.svg?branch=master)
![pre-commit.ci status](https://results.pre-commit.ci/badge/github/benoitdm-oslandia/pg_featureserv/master.svg)
A lightweight RESTful geospatial feature server for PostGIS, written in Go.
It supports the OGC API - Features REST API standard.
See also our companion project pg_tileserv
.
Main features
- Implements the OGC API - Features standard.
- Standard query parameters:
limit
, bbox
, bbox-crs
, property filtering, sortby
, crs
- Query parameters
filter
and filter-crs
allow CQL filtering, with spatial support
- Extended query parameters:
offset
, properties
, transform
, precision
, groupby
, max-allowable-offset
- Data responses are formatted in JSON and GeoJSON
- Provides a simple HTML user interface, with web maps to view spatial data
- Uses the power of PostgreSQL to reduce the amount of code
and to make data definition easy and familiar.
- Feature collections are defined by database objects (tables and views)
- Filters are executed in the database, and use indexes where defined
- Uses PostGIS to provide geospatial functionality:
- Spatial filtering
- Transforming geometry data into the output coordinate system
- Providing geometry simplification capability
- Marshalling feature data into GeoJSON
- Full-featured HTTP support
- CORS support with configurable Allowed Origins
- GZIP response encoding
- HTTP and HTTPS support
For a full list of software capabilities is available here.
Documentation
The full User Guide contains the following chapters: