developmentseed / tipg

Simple and Fast Geospatial OGC Features and Tiles API for PostGIS.
https://developmentseed.org/tipg/
MIT License
153 stars 23 forks source link

Added in environment variable for sorting/config #187

Closed mattdiez-at closed 3 months ago

mattdiez-at commented 3 months ago

Rationale

Column order is important for a few of the tables I work with and switching my users from their (database-defined) order to alphabetical caused a little shellshock. Essentially, getting this functionality will be the last part of our migration from a different feature server package.

How it works

We add an environment variable TIPG_SORT_COLUMNS (which defaults to True). Set it to False to disable sorting of columns. It's essentially trivial code, plus accompanying docs and Settings model updates.

Anything else?

Let me know if I need to add anything else here.