fix: transform coordinates to EPSG:25832 for database insertion
Deploy Bürgerwind / deploy (push) Successful in 16s Details

This commit is contained in:
Johannes Baumeister 2026-04-28 12:54:39 +02:00
parent 4c03cfdd5e
commit bb9c90e4d0
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ app.post('/api/wea', async (req, res) => {
await client.query(
`INSERT INTO geodaten.wea_standorte (
wea_nummer, hersteller, anlagentyp, nabenhoehe, rotordurchmesser, ksf_drehung, projekt_id, geom
) VALUES ($1, $2, $3, $4, $5, $6, $7, ST_SetSRID(ST_MakePoint($8, $9), 4326))`,
) VALUES ($1, $2, $3, $4, $5, $6, $7, ST_Transform(ST_SetSRID(ST_MakePoint($8, $9), 4326), 25832))`,
[
t.nr,
t.hersteller || '',