Mercurial > gemma
diff pkg/imports/fm.go @ 4907:644cb7c175f3 fairway-marks-import
Use proper type to represent featuretype
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 07 Feb 2020 19:38:48 +0100 |
parents | 21fea90f4002 |
children | e41d42be0e13 |
line wrap: on
line diff
--- a/pkg/imports/fm.go Fri Feb 07 12:35:11 2020 +0100 +++ b/pkg/imports/fm.go Fri Feb 07 19:38:48 2020 +0100 @@ -62,10 +62,11 @@ // Constructor returning pointer to struct // representing featuretype's properties newProps func() interface{}, + // Construct pointer to featuretype from given pointSlice and properties + newFeat func(pointSlice, interface{}) interface{}, ) ( - // Elements can be converted to []interface{}{p, fp} with - // p being a pointSlice and fp of the type of argument props. - fms [][]interface{}, + // Slice of features to be converted to featuretypes type + fms []interface{}, epsg int, err error, ) { @@ -147,7 +148,7 @@ return err } - f := []interface{}{p, props} + f := newFeat(p, props) fms = append(fms, f) default: unsupported[feature.Geometry.Type]++