[mapserver-users] Grid Layer : different intervals from X and Y axis

Eduardo Kanegae ekanegae at gmail.com
Fri Apr 24 12:39:08 EDT 2009


Hi,

I´m currently using grid object for composing grid layers but I´d like
to draw X and Y axis using different interval values.

Example: 1 deg for Y and 1.5 deg for X.

Is there any trick to do that using grid layer?

best

MY MAPFILE:

        LAYER
                NAME                    "lin_grid"
                TYPE                    LINE
                CLASS
                        NAME                            "Grid"
                        LABEL
                                COLOR         64 64 128
                                OUTLINECOLOR  192 224 255
                                TYPE            TRUETYPE
                                FONT      "vera"
                                ANTIALIAS  TRUE
                                MINDISTANCE 16
                                OFFSET 7 0
                                SIZE      7
                                POSITION  CC
                                PARTIALS  FALSE
                        END
                        STYLE
                                COLOR                   0 172 241
                                ANTIALIAS               TRUE
                                WIDTH 1
                        END
                END
                GRID
                        LABELFORMAT '%g°'
                        MININTERVAL 6
                END
                STATUS                  OFF
                OPACITY 50
        END


-- 
Eduardo Patto Kanegae
http://anthologis.com
http://blogdopatto.webmapit.com.br


More information about the mapserver-users mailing list