changeset 188:ee3093966a6d

ST_SetSRID should be not need as the map extent column does not have any SRID code.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 20 Jul 2018 10:27:42 +0200
parents 51addc0533fe
children 96bb671cdd98
files cmd/tokenserver/user.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd/tokenserver/user.go	Fri Jul 20 07:05:11 2018 +0200
+++ b/cmd/tokenserver/user.go	Fri Jul 20 10:27:42 2018 +0200
@@ -30,7 +30,7 @@
 const (
 	createUserSQL       = `SELECT create_user($1, $2, $3, $4, NULL, $5)`
 	createUserExtentSQL = `SELECT create_user($1, $2, $3, $4,
-  ST_SetSRID(ST_MakeBox2D(ST_Point($5, $6), ST_Point($7, $8)), 4326), $9)`
+  ST_MakeBox2D(ST_Point($5, $6), ST_Point($7, $8)), $9)`
 )
 
 func createUser(rw http.ResponseWriter, req *http.Request) {