fix: transform geom back to WGS84 on load and use correct column names
Deploy Bürgerwind / deploy (push) Successful in 16s Details

This commit is contained in:
Johannes Baumeister 2026-04-28 13:12:23 +02:00
parent 1995ccaff0
commit 1c6d27361f
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ app.get('/api/wea/:projekt_id', async (req, res) => {
try { try {
const result = await pool.query( const result = await pool.query(
`SELECT wea_nummer as nr, anlagentyp as type, nabenhoehe as hh, rotordurchmesser as rd, ksf_drehung as ksfAngle, `SELECT wea_nummer as nr, anlagentyp as type, nabenhoehe as hh, rotordurchmesser as rd, ksf_drehung as ksfAngle,
ST_X(geom) as lng, ST_Y(geom) as lat ST_X(ST_Transform(geom, 4326)) as lng, ST_Y(ST_Transform(geom, 4326)) as lat
FROM geodaten.wea_standorte WHERE projekt_id = $1`, FROM geodaten.wea_standorte WHERE projekt_id = $1`,
[projekt_id] [projekt_id]
); );