comparison pkg/imports/wkb.go @ 5270:41a67619c170 multi-geoms

Added multi geometry support for some imports.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 08 Jun 2020 19:29:40 +0200
parents cf25b23e3eec
children 6270951dda28
comparison
equal deleted inserted replaced
5264:528fa710650b 5270:41a67619c170
23 23
24 "gemma.intevation.de/gemma/pkg/wkb" 24 "gemma.intevation.de/gemma/pkg/wkb"
25 ) 25 )
26 26
27 type ( 27 type (
28 pointSlice []float64 28 pointSlice []float64
29 lineSlice [][]float64 29 lineSlice [][]float64
30 multiLineSlice []lineSlice 30 multiLineSlice []lineSlice
31 polygonSlice [][][]float64 31 polygonSlice [][][]float64
32 multiPolygonSlice []polygonSlice
32 ) 33 )
33 34
34 func newPointFeature(newProperties func() interface{}) func() (string, interface{}) { 35 func newPointFeature(newProperties func() interface{}) func() (string, interface{}) {
35 return func() (string, interface{}) { return "Point", newProperties() } 36 return func() (string, interface{}) { return "Point", newProperties() }
36 } 37 }