comparison pkg/imports/wa.go @ 1786:09349ca27dd7

Imports: Removed duplicated code path to store WKB polygons into database.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 13 Jan 2019 13:02:39 +0100
parents 614c6c766691
children 904c7e853adc
comparison
equal deleted inserted replaced
1785:614c6c766691 1786:09349ca27dd7
204 } 204 }
205 } 205 }
206 206
207 switch feature.Geometry.Type { 207 switch feature.Geometry.Type {
208 case "Polygon": 208 case "Polygon":
209 var p polygon 209 var p polygonSlice
210 if err := json.Unmarshal(*feature.Geometry.Coordinates, &p); err != nil { 210 if err := json.Unmarshal(*feature.Geometry.Coordinates, &p); err != nil {
211 return err 211 return err
212 } 212 }
213 if _, err := insertStmt.ExecContext( 213 if _, err := insertStmt.ExecContext(
214 ctx, 214 ctx,