Mercurial > gemma
comparison pkg/imports/sr.go @ 1137:2fb6c0a6ec8a
Avoid intersection of each isoline with area on insert
Since rev. a4e003ba0074, this intersection is already done along with the
triangulation.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 08 Nov 2018 16:30:53 +0100 |
parents | a5069da2f0b7 |
children | 443fc80a315f |
comparison
equal
deleted
inserted
replaced
1136:a5069da2f0b7 | 1137:2fb6c0a6ec8a |
---|---|
129 $1, | 129 $1, |
130 $2, | 130 $2, |
131 ST_Transform( | 131 ST_Transform( |
132 ST_Multi( | 132 ST_Multi( |
133 ST_CollectionExtract( | 133 ST_CollectionExtract( |
134 ST_Intersection( | 134 ST_SimplifyPreserveTopology( |
135 ST_Transform(sr.area::geometry, $3::integer), | 135 ST_GeomFromWKB($4, $3::integer), |
136 ST_SimplifyPreserveTopology( | 136 $5 |
137 ST_GeomFromWKB($4, $3::integer), | |
138 $5 | |
139 ) | |
140 ), | 137 ), |
141 2 | 138 2 |
142 ) | 139 ) |
143 ), | 140 ), |
144 4326 | 141 4326 |