changeset 5315:12a5e128255f zpg-exception

If there is no ZPG exception correct the depth reference system from database.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 16 Jun 2021 21:18:47 +0200
parents 0e8fd0e5bf36
children d188baf44ed0
files pkg/imports/sr.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/sr.go	Wed Jun 16 19:35:24 2021 +0200
+++ b/pkg/imports/sr.go	Wed Jun 16 21:18:47 2021 +0200
@@ -337,8 +337,8 @@
 				func(v mesh.Vertex) mesh.Vertex {
 					return mesh.Vertex{X: v.X, Y: v.Y, Z: v.Z + ldc}
 				})
+			m.DepthReference = depthReference
 		}
-		m.DepthReference = depthReference
 	}
 
 	if err := m.Validate(ctx, conn); err != nil {