hholzgra / ocitysmap

Fork of ocitysmap repository at savannah.nongnu.org
Other
35 stars 12 forks source link

UTM zone clipping does not work correctly #84

Closed hartmut-mariadb closed 1 year ago

hartmut-mariadb commented 1 year ago

They way the grid rendering function works clipping rectangles are used that should prevent grid lines from overlapping across zone boundaries.

For some strange reason this does not really work though, even though the right edge of the left zones grid clipping area has the same X coordinate as the left edge of the right zone there's an overlap of ca. 62 pixels somehow ...

clipping-problem

hholzgra commented 1 year ago

Now this was pretty stupid after all, the parameters of the Cairo rectangle function are not (x1,y1,x2,y2) coordinates for top left and bottom right corner, but (x,y,width,height)

So a simple one liner change fixed this

hartmut-mariadb commented 1 year ago

good-grid