[mapserver-users] GRID - how to display labels not in degrees
Alexandre Dube
adube at mapgears.com
Wed Jun 20 10:30:05 PDT 2012
Hi,
Using the [GRID] object, I'm able to do a GetMap request using
&SRS=EPSG:900913 to display a the grid correctly reprojected, but the
coordinates displayed (labels) are in degrees. When switching the layer
PROJECTION from 4326 to 900913, the request throws a 504 error.
How can I display them in 900913 ?
See the attached image and layer definition. I'm using MapServer 6.0.1.
Thanks,
Alexandre
[GRID] http://mapserver.org/mapfile/grid.html
--
Alexandre Dubé
Mapgears
www.mapgears.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grid.png
Type: image/png
Size: 5125 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120620/3fa9f39c/attachment.png>
-------------- next part --------------
LAYER
NAME "grid"
METADATA
"DESCRIPTION" "Grid"
END
TYPE LINE
STATUS ON
CLASS
NAME "Graticule"
STYLE
COLOR 0 0 0
WIDTH 0.3
END
LABEL
COLOR 0 0 0
FONT "sans"
TYPE truetype
SIZE 6.5
POSITION AUTO
PARTIALS FALSE
BUFFER 5
END
END
PROJECTION
"init=epsg:4326"
END
GRID
LABELFORMAT '%.1f°'
MAXARCS 10
MININTERVAL 10
MAXINTERVAL 10
MAXSUBDIVIDE 2
END
END
More information about the MapServer-users
mailing list