Fix coordinate transformation SRID in variants save API
Deploy TrassenPlaner / deploy (push) Waiting to run Details

This commit is contained in:
Johannes Baumeister 2026-04-20 10:04:07 +02:00
parent 6e5ef89733
commit 805794756f
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ app.post('/api/variants', async (req, res) => {
const insertQuery = `
INSERT INTO kabeltrasse (geom, name, "Variante")
VALUES (
ST_MakeValid(ST_Transform(ST_GeomFromGeoJSON($1), 25832)),
ST_MakeValid(ST_Transform(ST_SetSRID(ST_GeomFromGeoJSON($1), 4326), 25832)),
$2,
$3
)