diff pkg/imports/wkb.go @ 5016:cf25b23e3eec

Keep historic data of waterway axis ... and accordingly configure the respective layer as WMS-T.
author Tom Gottfried <tom@intevation.de>
date Fri, 13 Mar 2020 17:34:59 +0100
parents 0b97f5301a17
children 41a67619c170
line wrap: on
line diff
--- a/pkg/imports/wkb.go	Fri Mar 13 14:13:32 2020 +0100
+++ b/pkg/imports/wkb.go	Fri Mar 13 17:34:59 2020 +0100
@@ -35,6 +35,14 @@
 	return func() (string, interface{}) { return "Point", newProperties() }
 }
 
+func newMultiLineFeature(
+	newProperties func() interface{},
+) func() (string, interface{}) {
+	return func() (string, interface{}) {
+		return "MultiLineString", newProperties()
+	}
+}
+
 func (ls lineSlice) toWKB(buf *bytes.Buffer) {
 	binary.Write(buf, binary.LittleEndian, wkb.NDR)
 	binary.Write(buf, binary.LittleEndian, wkb.LineString)