Handle when location is null in image location JSON query
This commit is contained in:
parent
39e0d9d9f3
commit
d0b28d7f59
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue