forked from MTSR/mapserver
fix some issues
This commit is contained in:
parent
ecad16ae7e
commit
28119bb1bf
@ -1,11 +0,0 @@
|
||||
package mapblockaccessor
|
||||
|
||||
import (
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
var log *logrus.Entry
|
||||
|
||||
func init() {
|
||||
log = logrus.WithFields(logrus.Fields{"prefix": "mapblockaccessor"})
|
||||
}
|
@ -75,11 +75,11 @@ func addColorComponent(c *color.RGBA, value int) *color.RGBA {
|
||||
|
||||
func (r *MapBlockRenderer) Render(pos1, pos2 *coords.MapBlockCoords) (*image.NRGBA, error) {
|
||||
if pos1.X != pos2.X {
|
||||
return nil, errors.New("X does not line up")
|
||||
return nil, errors.New("x does not line up")
|
||||
}
|
||||
|
||||
if pos1.Z != pos2.Z {
|
||||
return nil, errors.New("Z does not line up")
|
||||
return nil, errors.New("z does not line up")
|
||||
}
|
||||
|
||||
renderedMapblocks.Inc()
|
||||
|
@ -21,7 +21,7 @@ func TestSimpleRender(t *testing.T) {
|
||||
logrus.SetLevel(logrus.InfoLevel)
|
||||
|
||||
layers := []*layer.Layer{
|
||||
&layer.Layer{
|
||||
{
|
||||
Id: 0,
|
||||
Name: "Base",
|
||||
From: -16,
|
||||
|
@ -54,7 +54,7 @@ func BenchmarkTileRender(b *testing.B) {
|
||||
tdb, _ := tiledb.New(tiletmpdir)
|
||||
|
||||
layers := []*layer.Layer{
|
||||
&layer.Layer{
|
||||
{
|
||||
Id: 0,
|
||||
Name: "Base",
|
||||
From: -16,
|
||||
|
@ -54,7 +54,7 @@ func TestTileRender(t *testing.T) {
|
||||
tdb, _ := tiledb.New(tiletmpdir)
|
||||
|
||||
layers := []*layer.Layer{
|
||||
&layer.Layer{
|
||||
{
|
||||
Id: 0,
|
||||
Name: "Base",
|
||||
From: -16,
|
||||
|
Loading…
Reference in New Issue
Block a user