teksi / district_heating

Future TEKSI distance heating module
GNU General Public License v3.0
0 stars 0 forks source link

QGIS generates 2 distinct tables for 2D and 3D #15

Closed jpdupuy closed 1 month ago

jpdupuy commented 1 month ago

Whenever the data model includes 2 geometry columns (ie for 2D and for 3D) for a specific table : ALTER TABLE tdh_od.structure ADD COLUMN geometry_geometry geometry('CURVEPOLYGON', :SRID); ALTER TABLE tdh_od.structure ADD COLUMN geometry3d_geometry geometry('CURVEPOLYGONZ', :SRID); the QGIS Data manager will propose 2 tables with the same name to import in the canvas image

Therefor, only one geometry column should be specified in the datamodel to avoid confusion (to be discussed)

sjib commented 1 month ago

Changed to only one geometry3d - see https://github.com/teksi/district_heating/pull/1/commits/ecaab5c1d59448a01b669991e1a6572966c38547