Ticket #1530 (closed defect: fixed)
[Grid] Grid layer don't display rounded values when zoomed in
| Reported by: | jlacroix | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | 4.8 release |
| Component: | MapServer C Library | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Grid layers seem to define the place where they draw the grid on the map on in
weird way when zoomed in. It seems that when we are zoom-in to display less than
a degree on the map, the place where the grid layer place its grid lines is all
messed up.
Below is a sample mapfile to reproduce this problem. If you notice, the -87
degree is in the middle of the image. However, mapserver place the line of the
grid on -86D 56M 59S.
MAP
STATUS ON
SIZE 400 300
EXTENT -87.052494 49.738376 -86.925045 49.972017
WEB
TEMPLATE "testmap.html"
IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
END
LAYER
NAME "gridlayer"
TYPE LINE
STATUS DEFAULT
CLASS
COLOR 0 0 0
LABEL
COLOR 0 0 0
SIZE SMALL
OUTLINECOLOR 255 255 255
END
END
GRID
LABELFORMAT "DDMMSS"
MININTERVAL .25
END
END # Layer
END # Map File
To add on the top of that, if you change the MININTERVAL to 1, there's no line
at all. Even if the -87 degree is right in the middle of the map.
Change History
Note: See
TracTickets for help on using
tickets.
