feat: load freileitungen from geodaten.Freileitungen table
Deploy Standortplaner / deploy (push) Successful in 17s Details

This commit is contained in:
Johannes Baumeister 2026-06-25 09:12:32 +02:00
parent 40017b152a
commit e3f51f59e0
1 changed files with 15 additions and 1 deletions

View File

@ -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);