feat: load freileitungen from geodaten.Freileitungen table
This commit is contained in:
parent
40017b152a
commit
e3f51f59e0
16
server.js
16
server.js
|
|
@ -326,7 +326,21 @@ app.get('/api/layers/leitungsverlaeufe', async (req, res) => {
|
|||
)
|
||||
) AS feature
|
||||
FROM geodaten.leitungsverleaufe
|
||||
WHERE art ILIKE '%wasserstoff%' OR art ILIKE '%freileitung%'
|
||||
WHERE art ILIKE '%wasserstoff%'
|
||||
|
||||
UNION ALL
|
||||
|
||||
SELECT jsonb_build_object(
|
||||
'type', 'Feature',
|
||||
'geometry', ST_AsGeoJSON(ST_Transform(geom, 4326))::jsonb,
|
||||
'properties', jsonb_build_object(
|
||||
'art', 'freileitung',
|
||||
'land', land,
|
||||
'stand', stand,
|
||||
'spannung', '380'
|
||||
)
|
||||
) AS feature
|
||||
FROM geodaten."Freileitungen"
|
||||
) features`
|
||||
);
|
||||
res.json(result.rows[0].jsonb_build_object);
|
||||
|
|
|
|||
Loading…
Reference in New Issue