Skip to content

Commit 309906a

Browse files
committed
Some GeoJSON docs
1 parent 30403e4 commit 309906a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,19 @@ For spatial support there is an extra set of filters that can be applied on geom
610610

611611
These filters are based on OGC standards and so is the WKT specification in which the geometry columns are represented.
612612

613+
#### GeoJSON
614+
615+
The GeoJSON support is a read-only view on the tables and records in GeoJSON format. These requests are supported:
616+
617+
method path - operation - description
618+
----------------------------------------------------------------------------------------
619+
GET /geojson/{table} - list - lists records as a GeoJSON FeatureCollection
620+
GET /geojson/{table}/{id} - read - reads a record by PK as a GeoJSON Feature
621+
622+
The "`/geojson`" endpoint will only show what is allowed in your session. It also supports a "geometry"
623+
parameter to indicate the name of the geometry column in case the table has more than one of them.
624+
Add the "geojson" controller in the configuration to enable this functionality.
625+
613626
### Authentication
614627

615628
Authentication is done by means of sending a "Authorization" header. It identifies the user and stores this in the `$_SESSION` super global.

0 commit comments

Comments
 (0)