Mercurial > gemma
comparison pkg/controllers/shapestretches.go @ 4389:5e38667f740c stretches-for-responsibility
Use stretches as areas of responsibility.
This is heavily based on a patch by Tom Gottfried
(read: >90% of the work was done by Tom).
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Thu, 12 Sep 2019 18:13:47 +0200 |
parents | 78be85723eff |
children | 5f47eeea988d |
comparison
equal
deleted
inserted
replaced
4371:4a5ed371011f | 4389:5e38667f740c |
---|---|
43 ST_AsBinary(area::geometry), | 43 ST_AsBinary(area::geometry), |
44 objnam, | 44 objnam, |
45 nobjnam, | 45 nobjnam, |
46 date_info, | 46 date_info, |
47 source_organization | 47 source_organization |
48 FROM waterway.stretches WHERE | 48 FROM users.stretches WHERE |
49 staging_done AND | 49 staging_done AND |
50 name = $1` | 50 name = $1` |
51 | 51 |
52 selectStretchCountriesSQL = ` | 52 selectStretchCountriesSQL = ` |
53 SELECT country_code FROM waterway.stretch_countries | 53 SELECT country FROM users.stretch_countries |
54 WHERE stretches_id = $1 | 54 WHERE stretch_id = $1 |
55 ORDER BY country_code` | 55 ORDER BY country` |
56 ) | 56 ) |
57 | 57 |
58 func flattenPoints(mp wkb.MultiPolygonGeom) []shp.Point { | 58 func flattenPoints(mp wkb.MultiPolygonGeom) []shp.Point { |
59 | 59 |
60 var n int | 60 var n int |