mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 19:27:49 +00:00
Update api.monitoring_view, add new properties wind and speed in to the geojson.
This commit is contained in:
@@ -392,7 +392,10 @@ CREATE VIEW api.monitoring_view WITH (security_invoker=true,security_barrier=tru
|
|||||||
'properties', jsonb_build_object(
|
'properties', jsonb_build_object(
|
||||||
'name', current_setting('vessel.name', false),
|
'name', current_setting('vessel.name', false),
|
||||||
'latitude', m.latitude,
|
'latitude', m.latitude,
|
||||||
'longitude', m.longitude
|
'longitude', m.longitude,
|
||||||
|
'time', m.time,
|
||||||
|
'speedoverground', m.speedoverground,
|
||||||
|
'windspeedapparent', m.windspeedapparent
|
||||||
)::jsonb ) AS geojson,
|
)::jsonb ) AS geojson,
|
||||||
current_setting('vessel.name', false) AS name
|
current_setting('vessel.name', false) AS name
|
||||||
FROM api.metrics m
|
FROM api.metrics m
|
||||||
|
Reference in New Issue
Block a user