[Mapserver-users] GRID problems
Martin Weinelt
mweinelt at planiglobe.com
Tue Jun 1 10:02:57 PDT 2004
Dear list,
last couple of days I tried to add a geographic grid to maps of the
following projection: geographic, LAEA north pole, LAEA south pole,
Mercator.
While it went fine with the lon/lat maps I am facing problems with the
projected maps. For both of the polar aspect maps, the central parts
of the maps (around the poles) either get no graticule or the CGI
crashes while trying to render the map. With the Mercator map
erroneous meridians get rendered from the northen map boundary to the
center of the projection (0/0). Zooming to this center sometimes also
crashes the CGI. Obviously the problem is to project the grid in
special (projection dependent) parts.
Am I missing s/thing or can somebody comment on my problem?
The following is an example of my mapfiles for the LAEA North
projection - the others are similar.
### MAP: #####
PROJECTION
"proj=laea"
"lat_0=90"
"lon_0=0"
"x_0=0"
"y_0=0"
"units=m"
"ellps=WGS84"
"datum=WGS84"
END
### THE GRID #####
LAYER
NAME "Graticule"
PROJECTION
"proj=latlong"
"ellps=WGS84"
"datum=WGS84"
END
TYPE LINE
STATUS DEFAULT
CLASS
SYMBOL "line"
SIZE 2
COLOR 120 120 120
LABEL
[ .... ]
END # label
END # class
GRID
MINSUBDIVIDE 64
MAXSUBDIVIDE 64
MAXARCS 6
LABELFORMAT "DDMM"
END
END
Thanks, Martin
More information about the MapServer-users
mailing list