forked from MTSR/mapserver
main stub
This commit is contained in:
parent
1dae50c439
commit
4218baedd2
14
main.go
14
main.go
@ -10,8 +10,11 @@ import (
|
|||||||
"mapserver/params"
|
"mapserver/params"
|
||||||
"mapserver/worldconfig"
|
"mapserver/worldconfig"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"mapserver/initialrenderer"
|
"mapserver/tilerenderer"
|
||||||
"mapserver/tiledb"
|
"mapserver/tiledb"
|
||||||
|
"mapserver/layerconfig"
|
||||||
|
"mapserver/coords"
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -72,6 +75,13 @@ func main() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
initialrenderer.Render(r, tdb)
|
tr := tilerenderer.NewTileRenderer(r, tdb, layerconfig.DefaultLayers)
|
||||||
|
|
||||||
|
tc := coords.NewTileCoords(0,0,9,0)
|
||||||
|
_, err = tr.Render(tc)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user