comparison 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
comparison
equal deleted inserted replaced
5015:df3cab060ed9 5016:cf25b23e3eec
33 33
34 func newPointFeature(newProperties func() interface{}) func() (string, interface{}) { 34 func newPointFeature(newProperties func() interface{}) func() (string, interface{}) {
35 return func() (string, interface{}) { return "Point", newProperties() } 35 return func() (string, interface{}) { return "Point", newProperties() }
36 } 36 }
37 37
38 func newMultiLineFeature(
39 newProperties func() interface{},
40 ) func() (string, interface{}) {
41 return func() (string, interface{}) {
42 return "MultiLineString", newProperties()
43 }
44 }
45
38 func (ls lineSlice) toWKB(buf *bytes.Buffer) { 46 func (ls lineSlice) toWKB(buf *bytes.Buffer) {
39 binary.Write(buf, binary.LittleEndian, wkb.NDR) 47 binary.Write(buf, binary.LittleEndian, wkb.NDR)
40 binary.Write(buf, binary.LittleEndian, wkb.LineString) 48 binary.Write(buf, binary.LittleEndian, wkb.LineString)
41 binary.Write(buf, binary.LittleEndian, uint32(len(ls))) 49 binary.Write(buf, binary.LittleEndian, uint32(len(ls)))
42 50