Handle when location is null in image location JSON query

This commit is contained in:
Eli Ribble 2026-02-06 15:41:00 +00:00
parent 39e0d9d9f3
commit d0b28d7f59
No known key found for this signature in database

View file

@ -7,7 +7,7 @@ SELECT
"publicreport.image"."content_type" AS "content_type",
"publicreport.image"."created" AS "created",
"publicreport.image"."location" AS "location",
ST_AsGeoJSON("publicreport.image"."location") AS "location_json",
COALESCE(ST_AsGeoJSON("publicreport.image"."location"), '{}') AS "location_json",
"publicreport.image"."resolution_x" AS "resolution_x",
"publicreport.image"."resolution_y" AS "resolution_y",
"publicreport.image"."storage_uuid" AS "storage_uuid",