diff pkg/imports/sr.go @ 1496:3bf1f0de0763

Un-export point, line string and polygon types in import package as these are only used locally.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 04 Dec 2018 18:27:35 +0100
parents eb82076fdffe
children 5df748916fcf
line wrap: on
line diff
--- a/pkg/imports/sr.go	Tue Dec 04 18:20:31 2018 +0100
+++ b/pkg/imports/sr.go	Tue Dec 04 18:27:35 2018 +0100
@@ -234,7 +234,7 @@
 		m.Date.Time,
 		m.DepthReference,
 		xyz.AsWKB(),
-		polygon.AsWBK(),
+		polygon.asWKB(),
 		m.EPSG,
 	).Scan(&id, &lat, &lon, &epsg)
 	xyz, polygon = nil, nil // not need from now on.
@@ -415,7 +415,7 @@
 	return loadXYZReader(r, feedback)
 }
 
-func loadBoundary(z *zip.ReadCloser) (Polygon, error) {
+func loadBoundary(z *zip.ReadCloser) (polygon, error) {
 	shpF := common.FindInZIP(z, ".shp")
 	if shpF == nil {
 		return nil, nil