This commit is contained in:
NatureFreshMilk 2019-10-01 08:14:06 +02:00
parent 33beca15da
commit ed487651c3
2 changed files with 9 additions and 9 deletions

View File

@ -3,6 +3,8 @@ package tilerenderer
import (
"bytes"
"errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"
"image"
"image/draw"
"image/png"
@ -14,8 +16,6 @@ import (
"mapserver/tiledb"
"strconv"
"time"
"github.com/sirupsen/logrus"
"github.com/prometheus/client_golang/prometheus"
)
type TileRenderer struct {
@ -72,7 +72,7 @@ const (
SUB_IMG_SIZE = IMG_SIZE >> 1
)
func (tr *TileRenderer) Render(tc *coords.TileCoords) (error) {
func (tr *TileRenderer) Render(tc *coords.TileCoords) error {
//No tile in db
_, err := tr.renderImage(tc, 2)