diff --git a/translate.go b/translate.go index e8e7c0519fd5bd19fc2359dfee7dabce7c8601d6..9c9e864fe3b53486c0797dcf8421b5514e4237f6 100644 --- a/translate.go +++ b/translate.go @@ -49,8 +49,8 @@ func (c *Composite) calibrateProjection() { // calibrate scaling resx, resy := c.Translate(edgeBottom, edgeRight) - c.Rx = resx / float64(c.Dx-1) - c.Ry = resy / float64(c.Dy-1) + c.Rx = (resx) / float64(c.Dx) + c.Ry = (resy) / float64(c.Dy) } // Translate translates geographical coordinates (latitude north, longitude east) to the