<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<p style="margin-bottom: 0cm;">Hallo Users<br>
</p>
<p style="margin-bottom: 0cm;">Indeed with AGG driver rotating of
vector symbols work very well. I attached the Examle images. So is
it a BUG form gd driver?<br>
</p>
<p style="margin-bottom: 0cm;">The GD_GIF_mapserver5_6_1.gif image
was rendered with following map sections:<small><br>
</small>
</p>
<p style="margin-bottom: 0cm;"><small>OUTPUTFORMAT<br>
NAME gif<br>
DRIVER "GD/GIF"<br>
MIMETYPE "image/gif"<br>
IMAGEMODE PC256<br>
EXTENSION "gif"<br>
END</small></p>
<p style="margin-bottom: 0cm;"><small>LAYER<br>
NAME testtest<br>
STATUS
on<br>
TYPE line<br>
TRANSFORM false<br>
FEATURE<br>
WKT
"LINESTRING (0 0, 100 100, 200 100, 300 200, 200 300)"<br>
END <br>
CLASS<br>
STYLE<br>
ANGLE AUTO<br>
SYMBOL
"zakrzewienie_k1" <br>
COLOR 0 255 0<br>
SIZE 18<br>
END<br>
STYLE<br>
COLOR 255 0 0 <br>
WIDTH 1<br>
END<br>
END <br>
END</small></p>
<p style="margin-bottom: 0cm;"><small>SYMBOL<br>
NAME "zakrzewienie_k1"<br>
TYPE VECTOR<br>
POINTS<br>
5 0<br>
2 1<br>
0 2.5<br>
2 4<br>
5
5<br>
5 5<br>
2 6<br>
0 7.5<br>
2 9<br>
5 10 <br>
END<br>
STYLE 1
8 1 18 END<br>
#SIZE 10<br>
GAP -99 <br>
END</small></p>
<br>
The second image: GD_PNG_mapserver5_6_1.png had such IMAGETYPE:<br>
<br>
<small>OUTPUTFORMAT<br>
NAME png<br>
DRIVER "GD/PNG"<br>
MIMETYPE "image/png"<br>
IMAGEMODE PC256<br>
EXTENSION "png"<br>
END</small><br>
<br>
The AGG_PNG_mapserver5_6_1.png image displays correctly rotated
vector symbols.The map file included:<br>
<p style="margin-bottom: 0cm;"> <small>OUTPUTFORMAT<br>
NAME 'aggpng'<br>
DRIVER AGG/PNG<br>
IMAGEMODE RGB #PC256 RGB RGBA BYTE
INT16</small></p>
<small>END</small>
<p style="margin-bottom: 0cm;"><small> </small></p>
<small>SYMBOL</small><br>
<p style="margin-bottom: 0cm;"><small> NAME "zakrzewienie_k1"<br>
TYPE VECTOR<br>
POINTS<br>
5 0<br>
2 1<br>
0 2.5<br>
2 4<br>
5
5<br>
5 5<br>
2 6<br>
0 7.5<br>
2 9<br>
5 10 <br>
END<br>
#STYLE 1
8 1 18 END<br>
#SIZE 10<br>
GAP -9 <br>
END<br>
</small><br>
MapServer version 5.6.1 OUTPUT=GIF
OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE </p>
<br>
<p style="margin-bottom: 0cm;">I must use GD driver because
performance aspects. The agg images are more pretty than GD but
essentially
much bigger than DG images (several times). AGG doesn't work with
PC256 palettet colors and DG does. The rendering time is really
much
longer than DG.</p>
<p style="margin-bottom: 0cm;">Exaples:<br>
times: 16ms for GD and 33ms for AGG<br>
sizes: 33KB – GD nad 230KB – AGG</p>
<p style="margin-bottom: 0cm;">Somebody nows how can I speed up
rendering time of AGG images to make it so fast than DG?</p>
Or is it a bug of GD driver or I'm doing something wrong? Any ideas
to solve or workaroud this problem?<br>
<br>
Thanks <br>
<br>
Bartek<br>
<br>
<blockquote
cite="mid:AANLkTik+QpgbsgRT7gNS9+QoFXTaoJf9JBydGXBCPAZU@mail.gmail.com"
type="cite">
<pre wrap="">It's supposed to work. If not, you might want to file a bugreport with
a screenshot of what you're getting, but in any case the GD driver in
the 5.x brach won't be getting much attention.
I'd highly suggest using AGG/PNG for any vector symbology rendering.
regards,
thomas
On Thu, Mar 31, 2011 at 08:53, Bartłomiej Burkot
<a class="moz-txt-link-rfc2396E" href="mailto:pomiarowiec10@poczta.onet.pl"><pomiarowiec10@poczta.onet.pl></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Any idea why it doesn't work?
</pre>
<blockquote type="cite">
<pre wrap="">Hi thomas
</pre>
<blockquote type="cite">
<pre wrap="">
what mapserver version?
what outputformat/renderer?
</pre>
</blockquote>
<pre wrap="">
MapServer version 5.6.5
OUTPUTFORMAT
NAME gif
DRIVER "GD/GIF"
MIMETYPE "image/gif"
IMAGEMODE PC256
EXTENSION "gif"
END
Bartek
</pre>
<blockquote type="cite">
<pre wrap="">--
thomas
On Wed, Mar 30, 2011 at 15:10, Bartłomiej Burkot
<a class="moz-txt-link-rfc2396E" href="mailto:pomiarowiec10@poczta.onet.pl"><pomiarowiec10@poczta.onet.pl></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Hi Users
I would like to render a vector symbol along the line in a layer. This
vector symbol should be rotated according to orientation of linesegments
(for example a arrow along one way street). When I use negative GAP with
truetype symbol it work perfectly but I have probelms with vector
symbols to
rotate them.
I use this definition of Symbol but it doesn't work:
SYMBOL
NAME "testsymbol"
TYPE VECTOR
POINTS
5 0
2 1
0 2.5
2 4
5 5
5 5
2 6
0 7.5
2 9
5 10
END
STYLE 1 8 1 18 END
GAP -99 # doesn't work
END
I read in docu <a class="moz-txt-link-freetext" href="http://mapserver.org/mapfile/symbol.html">http://mapserver.org/mapfile/symbol.html</a> that:
"When drawing the symbol along a line segment, a negative GAP will will
add
180 degress to the angle. The TrueType and PixMap symbols are always
oriented along the line."
My layer definiton is:
LAYER
NAME testtest
STATUS on
TYPE line
TRANSFORM false
FEATURE
WKT "LINESTRING (0 0, 100 100, 0 100)"
END
CLASS
STYLE
#ANGLE AUTO
SYMBOL "testsymbol"
COLOR 0 255 0
#SIZE 8
END
END
END
Does vectorsymbol play with negative GAP parameter?
Bartek
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
</blockquote>
<pre wrap="">
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>