comparison pkg/models/imports.go @ 2305:9c4ef2345db4

Configured Imports: Fixed unmarshalling of WFS imports.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Feb 2019 12:40:07 +0100
parents c8cc875d271c
children dc4fae4bdb8f
comparison
equal deleted inserted replaced
2304:ff947964c4ff 2305:9c4ef2345db4
127 } 127 }
128 return nil 128 return nil
129 } 129 }
130 130
131 func (wi *WFSImport) UnmarshalAttributes(attrs common.Attributes) error { 131 func (wi *WFSImport) UnmarshalAttributes(attrs common.Attributes) error {
132 if err := wi.URLType.UnmarshalAttributes(attrs); err != nil { 132 if err := wi.ConfigurableURLImport.UnmarshalAttributes(attrs); err != nil {
133 return err 133 return err
134 } 134 }
135 ft, found := attrs.Get("feature-type") 135 ft, found := attrs.Get("feature-type")
136 if !found { 136 if !found {
137 return errors.New("missing 'feature-type' attribute") 137 return errors.New("missing 'feature-type' attribute")