Mercurial > gemma
diff pkg/imports/sr.go @ 2833:1b6840093eac
Prevent calculation of wrong UTM zones
Using geography as input data type will ensure only lon/lat
coordinates are fed into the calculation.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 27 Mar 2019 15:39:52 +0100 |
parents | c7ce8b011bcb |
children | b1707f60f241 |
line wrap: on
line diff
--- a/pkg/imports/sr.go Wed Mar 27 15:37:36 2019 +0100 +++ b/pkg/imports/sr.go Wed Mar 27 15:39:52 2019 +0100 @@ -124,8 +124,8 @@ id, ST_X(ST_Centroid(area::geometry)), ST_Y(ST_Centroid(area::geometry)), - best_utm(area::geometry), - ST_AsBinary(ST_Transform(area::geometry, best_utm(area::geometry))) + best_utm(area), + ST_AsBinary(ST_Transform(area::geometry, best_utm(area))) ` reprojectPointsSQL = `