Mercurial > gemma
comparison pkg/imports/stsh.go @ 4314:c3b5cf2f200a
shape upload stretch import: Converted multi polygon to WKB.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 03 Sep 2019 17:12:07 +0200 |
parents | 5da02dcc51f6 |
children | 3d6a2c6b436c |
comparison
equal
deleted
inserted
replaced
4313:5da02dcc51f6 | 4314:c3b5cf2f200a |
---|---|
121 } | 121 } |
122 | 122 |
123 // Convert to a multi polygon. | 123 // Convert to a multi polygon. |
124 mp := poly.MultiPolygonGeom() | 124 mp := poly.MultiPolygonGeom() |
125 | 125 |
126 _ = mp | 126 wkb := mp.AsWKB() |
127 | |
128 _ = wkb | |
127 | 129 |
128 for k, f := range fields { | 130 for k, f := range fields { |
129 name := f.String() | 131 name := f.String() |
130 val := sr.Attribute(k) | 132 val := sr.Attribute(k) |
131 log.Printf("info: \t%s = %v\n", name, val) | 133 log.Printf("info: \t%s = %v\n", name, val) |