1
0
forked from MTSR/mapserver

fix some issues

This commit is contained in:
BuckarooBanzay 2023-10-11 17:35:39 +02:00
parent ecad16ae7e
commit 28119bb1bf
5 changed files with 5 additions and 16 deletions

View File

@ -1,11 +0,0 @@
package mapblockaccessor
import (
"github.com/sirupsen/logrus"
)
var log *logrus.Entry
func init() {
log = logrus.WithFields(logrus.Fields{"prefix": "mapblockaccessor"})
}

View File

@ -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()

View File

@ -21,7 +21,7 @@ func TestSimpleRender(t *testing.T) {
logrus.SetLevel(logrus.InfoLevel)
layers := []*layer.Layer{
&layer.Layer{
{
Id: 0,
Name: "Base",
From: -16,

View File

@ -54,7 +54,7 @@ func BenchmarkTileRender(b *testing.B) {
tdb, _ := tiledb.New(tiletmpdir)
layers := []*layer.Layer{
&layer.Layer{
{
Id: 0,
Name: "Base",
From: -16,

View File

@ -54,7 +54,7 @@ func TestTileRender(t *testing.T) {
tdb, _ := tiledb.New(tiletmpdir)
layers := []*layer.Layer{
&layer.Layer{
{
Id: 0,
Name: "Base",
From: -16,