fix: transform geom back to WGS84 on load and use correct column names
Deploy Bürgerwind / deploy (push) Successful in 16s
Details
Deploy Bürgerwind / deploy (push) Successful in 16s
Details
This commit is contained in:
parent
1995ccaff0
commit
1c6d27361f
|
|
@ -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]
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue