mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:57:07 +00:00
Fix GeoJSON returned by /navdata endpoint
This commit is contained in:
@@ -7,7 +7,10 @@ async function lines (options = {}) {
|
||||
const client = await pool.connect();
|
||||
|
||||
const text = `
|
||||
SELECT ST_AsGeoJSON(ST_MakeLine(geometry)) geojson
|
||||
SELECT json_build_object(
|
||||
'type', 'Feature',
|
||||
'geometry', ST_AsGeoJSON(ST_MakeLine(geometry))::json
|
||||
) geojson
|
||||
FROM (
|
||||
SELECT geometry
|
||||
FROM real_time_inputs
|
||||
|
||||
Reference in New Issue
Block a user