[Mapserver-users] line width
Dean Gadoury
gadoury at dmsolutions.ca
Wed Jul 2 06:45:41 PDT 2003
--------------050901070700020903020406
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
There should be plenty on this in the archives. The quick answer is that
you need to use a symbol and a size in your class. Here's an example:
CLASS
NAME "Major Highways"
SYMBOL "circle"
COLOR 255 0 0
SIZE 2
END
Using a circle symbol with a size of 2 will result in a line two pixels
wide. Using this approach you can make the lines any thickness you want.
You can use any symbol you want, but a circle usually produces the best
results. What happens is the symbol is used as a brush to 'paint' the line.
Petur Kirke wrote:
> Is it possible to set the width (thickness) of a line in the map file ?
> and how do i do it ?
--
___________________________
Dean Gadoury
DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24
gadoury at dmsolutions.ca
www.dmsolutions.ca
--------------050901070700020903020406
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
There should be plenty on this in the archives. The quick answer is that
you need to use a symbol and a size in your class. Here's an example:<br>
CLASS<br>
NAME "Major Highways"<br>
SYMBOL "circle"<br>
COLOR 255 0 0<br>
SIZE 2<br>
END<br>
Using a circle symbol with a size of 2 will result in a line two pixels wide.
Using this approach you can make the lines any thickness you want. You can
use any symbol you want, but a circle usually produces the best results.
What happens is the symbol is used as a brush to 'paint' the line.<br>
<br>
Petur Kirke wrote:<br>
<blockquote type="cite" cite="mid00c201c34095$86529650$10fea8c0 at fds.fo">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2722.900" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Is it possible to set the width (thickness)
of a line in the map file ?</font></div>
<div><font face="Arial" size="2">and how do i do it ?</font></div>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
___________________________
Dean Gadoury
DM Solutions Group
72 Chamberlain Ave. Third Floor
Ottawa, Ontario. K1S 1V9
613 565-5056 ext. 24
<a class="moz-txt-link-abbreviated" href="mailto:gadoury at dmsolutions.ca">gadoury at dmsolutions.ca</a>
<a class="moz-txt-link-abbreviated" href="http://www.dmsolutions.ca">www.dmsolutions.ca</a></pre>
<br>
</body>
</html>
--------------050901070700020903020406--
More information about the MapServer-users
mailing list