Mercurial > gemma
comparison pkg/imports/sr.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 | 807569b08513 |
children | 6a67cd819e93 |
comparison
equal
deleted
inserted
replaced
1785:614c6c766691 | 1786:09349ca27dd7 |
---|---|
426 } | 426 } |
427 defer r.Close() | 427 defer r.Close() |
428 return loadXYZReader(r, feedback) | 428 return loadXYZReader(r, feedback) |
429 } | 429 } |
430 | 430 |
431 func loadBoundary(z *zip.ReadCloser) (polygon, error) { | 431 func loadBoundary(z *zip.ReadCloser) (polygonSlice, error) { |
432 shpF := common.FindInZIP(z, ".shp") | 432 shpF := common.FindInZIP(z, ".shp") |
433 if shpF == nil { | 433 if shpF == nil { |
434 return nil, nil | 434 return nil, nil |
435 } | 435 } |
436 prefix := strings.TrimSuffix(shpF.Name, path.Ext(shpF.Name)) | 436 prefix := strings.TrimSuffix(shpF.Name, path.Ext(shpF.Name)) |