developmentseed / tipg

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

[BUG] Non-spatial table errors out of Browser UI #132

Closed jonaraphael closed 10 months ago

jonaraphael commented 10 months ago

If I have a non-spatial table, and I try to navigate to its items via the UI, the process will fail, despite having ONLY_SPATIAL_TABLES = False

Live example: https://cerulean-cloud-test-cloud-run-tipg-5qkjkyomta-ew.a.run.app/ <<< WORKS (landing page) https://cerulean-cloud-test-cloud-run-tipg-5qkjkyomta-ew.a.run.app/collections/ <<< WORKS (displays public.model) https://cerulean-cloud-test-cloud-run-tipg-5qkjkyomta-ew.a.run.app/collections/public.model/ <<< FAILS https://cerulean-cloud-test-cloud-run-tipg-5qkjkyomta-ew.a.run.app/collections/public.model/items <<< WORKS (shows items in non-spatial table)

ASIDE I think it could be helpful if the leaflet map were hidden on tables with no spatial column when in the "items" view.