aboutsummaryrefslogtreecommitdiffstats
path: root/administrative-codes
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2025-05-26 23:58:03 +0200
committerGuilhem Moulin <guilhem@fripost.org>2025-05-27 00:20:00 +0200
commit0fe67edd568a53abc1d7514b14d1a8a1d2af3e0e (patch)
tree9921601b3c4c1dd96479a262b2fba31ca052ecff /administrative-codes
parent7b256f36883b664c05a93b1ca9b6e999707dea8e (diff)
CGI: Serve only the feature's properties not the entire feature as GeoJSON.
The Web Application doesn't need the original full/non-simplified geometry. After all, OpenLayers has fetched the tiles already and the (visible part of) the geometry is already cached in the target SRS with sensible simplification factors. So there is really no need to transfer megabytes of high-precison data to the client to highlight the feature. This changes means that CGI responses will remain small hence can be buffered. To further speed up things one could store geometry area/perimeter/length as generated columns (along with the list of municipality and county codes) and serve row directly from PostgreSQL (bypassing PostGIS). Also since buffering is now an option the rows don't need be served in the same order as the request, so one could batch queries using ANY[] or IN.
Diffstat (limited to 'administrative-codes')
0 files changed, 0 insertions, 0 deletions