ciatph / ciatph.github.io

AMIA-CIAT demo output website (version 2.0)
https://ciatph.github.io
2 stars 0 forks source link

Test a PostGIS enabled api #35

Closed ciatph closed 3 years ago

ciatph commented 3 years ago

Test using a custom backend api that can serve GeoJSON from a PostGIS-enabled database, in case large file uploads is not allowed or may exceed the free-tier on mapbox.

ciatph commented 3 years ago

A sample API project livelihood-zones-api (for development mode only) that can serve GeoJSON data was created for testing.

It is good to use raw GeoJSON for smaller results, but larger results may need to be post-processed for more optimal serving over the web. As such, web mapping services with tiling and caching such as Mapbox or self-hosted GeoServer may be better alternate options.

The PostGIS enabled API looks fit to serve GeoJSON data for the purposes of the new livelihood zones web map, but was opted out because ways to host the shapefiles data on the now proprietary MapBox, while still availing its free-tier services have been found.