Graticule not working?

Jeff McKenna jmckenna at DMSOLUTIONS.CA
Tue Aug 24 15:57:28 EDT 2004


Berend,

Try "init=epsg:4326" in the layer projection.
Also change LABELFORMAT to "DDMM".

let me know if that works.


jeff





Berend Veldkamp wrote:
> Hi,
>
> Has anyone used the "GRID" object in a mapfile successfully? I found
> this thread:
> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0303/msg00215.html
> and it seems there's still something wrong. When I add a grid,
> php/mapscript hangs. Here's the relevant part of my mapfile:
>
>   LAYER
>     NAME "grid"
>     METADATA
>       WMS_TITLE "Graticule"
>     END
>     TYPE line
>     STATUS off
>     CLASS
>       NAME "Graticule"
>       COLOR 0 0 0
>       LABEL
>         COLOR  255 0 0
>         FONT "arial"
>         TYPE truetype
>         SIZE 8
>         POSITION AUTO
>         PARTIALS FALSE
>         BUFFER 5
>         OUTLINECOLOR 255 255 255
>       END
>     END
>     PROJECTION
>       "init=epsg:28992"
>     END
>     GRID
>       LABELFORMAT ddmm
>       MAXARCS 10
>       MAXINTERVAL 10
>       MAXSUBDIVIDE 2
>     END
>   END # Layer
>
> MapScript 4.2
> PHP 4.3.4
> Chameleon 1.99
> Windows XP SP1
> Apache 2.0.46
>


--
Jeff McKenna
GIS Specialist
DM Solutions Group Inc.
http://www.dmsolutions.ca



More information about the mapserver-users mailing list