map.go doc updated. I will make application more accurate

master
keen 2015-09-18 18:23:28 +09:00
parent 7310f478f2
commit 24ff172b9d
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,7 @@ func (c GoMap) Index() revel.Result {
return c.Render(maps)
}
//look at the Custom Result More.
//it would be change to WMS common Contoller.
func (c GoMap) Toilet() revel.Result {
var bbox,srs,widthStr,heightStr string
@ -31,6 +32,7 @@ func (c GoMap) Toilet() revel.Result {
c.Params.Bind(&srs, "SRS")
c.Params.Bind(&widthStr, "WIDTH")
c.Params.Bind(&heightStr, "HEIGHT")
splited:=strings.Split(srs,"EPSG:")
if(len(splited)>1){
srsNo,_ = strconv.Atoi(splited[1])
@ -68,3 +70,8 @@ func (c GoMap) Toilet() revel.Result {
}()
return c.RenderFile(file, revel.Inline )//Not an attachment. But Who disconnect the file.
}
// I would like to add Function that model can be loaded automatically.
// and database would be pluggable
func (c GoMap) Toilet() revel.Result {
}

View File

@ -1,3 +1,4 @@
//It will be deleted
package models
import (
"bytes"