[mapserver-users] Re: contours in mapfile
Oz Nahum
nahumoz at gmail.com
Fri Apr 9 03:51:36 PDT 2010
Hi Jeff, Gregory and Everyone,
First, thanks for the useful answers. I succeed now in displaying a
nice filled contour image.
My question is now - how can I make contours nicely draw as line.
Meaning - no fill, just out line.
I tried with:
CLASSITEM "[pixel]"
CLASS
NAME "NO DATA"
EXPRESSION ([pixel] == -9999)
COLOR 0 0 255
END
CLASS
NAME "0 - 5"
EXPRESSION ([pixel] >= 0 AND ([pixel] <=5)
#COLOR 200 0 0
STYLE
SYMBOL 0
SIZE 2
OUTLINECOLOR 200 0 0
END
END
CLASS
NAME "5 - 10"
EXPRESSION ([pixel] > 10 AND [pixel] <=20)
OUTLINECOLOR 243 162 0
END
CLASS
NAME "2 - 50"
EXPRESSION ([pixel] > 20 AND [pixel] <=50)
OUTLINECOLOR 0 200 0
END
END
But I still get the map with filled contours ...
I know I can use gdal_contour - but I'm just wondering if there is a
way of doing that with MapServer,
Thanks, once again
--
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen
---
Imagine there's no countries
it isn't hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace
More information about the MapServer-users
mailing list