Hallo UsersIndeed with AGG driver rotating of vector symbols work very well. I attached the Examle images. So is it a BUG form gd driver?
The GD_GIF_mapserver5_6_1.gif image was rendered with following map sections:
OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END LAYER NAME testtest STATUS on TYPE line TRANSFORM false FEATURE WKT "LINESTRING (0 0, 100 100, 200 100, 300 200, 200 300)" END CLASS STYLE ANGLE AUTO SYMBOL "zakrzewienie_k1" COLOR 0 255 0 SIZE 18 END STYLE COLOR 255 0 0 WIDTH 1 END END END SYMBOL NAME "zakrzewienie_k1" 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 #SIZE 10 GAP -99 END The second image: GD_PNG_mapserver5_6_1.png had such IMAGETYPE: OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" ENDThe AGG_PNG_mapserver5_6_1.png image displays correctly rotated vector symbols.The map file included:
OUTPUTFORMAT NAME 'aggpng' DRIVER AGG/PNG IMAGEMODE RGB #PC256 RGB RGBA BYTE INT16 END SYMBOL NAME "zakrzewienie_k1" 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 #SIZE 10 GAP -9 ENDMapServer 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
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.
Exaples: times: 16ms for GD and 33ms for AGG sizes: 33KB – GD nad 230KB – AGGSomebody nows how can I speed up rendering time of AGG images to make it so fast than DG?
Or is it a bug of GD driver or I'm doing something wrong? Any ideas to solve or workaroud this problem?
Thanks Bartek
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 <pomiarowie...@poczta.onet.pl> wrote:Any idea why it doesn't work?Hi thomaswhat mapserver version? what outputformat/renderer?MapServer version 5.6.5 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" END Bartek-- thomas On Wed, Mar 30, 2011 at 15:10, Bartłomiej Burkot <pomiarowie...@poczta.onet.pl> wrote: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 http://mapserver.org/mapfile/symbol.html 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 mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
<<attachment: GD_GIF_mapserver5_6_1.gif>>
<<attachment: GD_PNG_mapserver5_6_1.png>>
<<attachment: AGG_PNG_mapserver5_6_1_GAP_minus9.png>>
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users