qwat / qwat-data-model

TEKSI Water module (project QWAT) - PostgreSQL / postgis Datamodel
https://www.teksi.ch
23 stars 25 forks source link

The view vw_export_pipe is always in crs 21781 #350

Closed tproduit closed 2 years ago

tproduit commented 2 years ago

The scripts which generates this view doesn't take into account the crs set by the user. It always set the crs as 21781.

ponceta commented 2 years ago

https://github.com/qwat/qwat-data-model/blob/bc4c3254ab141f94df30946ef2fcb76e746a396c/ordinary_data/views/export/export_pipe.py#L8-L15

21781 is default but should take SRID stored either in the database or SRID supplied as parameter.