My assumption was that the problem was likely only with AGG rendering.
Please try the suggestions that I made in my last message and let me know how
they work, particularly setting the GAP value to a positive number.
David.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Valeria Muñoz
Sent: Monday, February 09, 2009 11:26 AM
To: Fawcett, David
Cc: mapserver-users
Subject: Re: [mapserver-users] symbol problem
hi david..
If i change the "OUTPUTFORMAT"configuration to:
OUTPUTFORMAT
NAME gif
DRIVER 'GD/GIF'
MIMETYPE 'image/gif'
#IMAGEMODE PC256
EXTENSION 'gif'
END
works... i thinks is a problem of AGG
RG
2009/2/9 Fawcett, David <[email protected]>
Valeria,
It would be useful if you provided more information. What
version of MapServer are you using? What were you expecting to see?
Because you are setting your symbol angle to 0, I am guessing
that you want all of the arrows to point to the top of the map.
I am aware of a bug in AGG rendering where TrueType symbols are
not corrrectly rotated (fixed in trunk), but I haven't seen a problem with
pixmap symbols.
In the symbol block of your layer, try commenting out the SIZE
property. I think that you really just want your pixmap symbol to be displayed
in its native size.
Also, in your symbol definition at the end of your map file,
try changing the value of GAP from -50 to 50.
David.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Valeria Muñoz
Sent: Monday, February 09, 2009 6:39 AM
To: mapserver-users
Subject: [mapserver-users] symbol problem
Hi
I have problems with displaying symbols,I can not give
the correct orientation-... do you know why does not work with this
configuration?
attached image of my problem
OUTPUTFORMAT
NAME png
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB #RGBA transparente
EXTENSION "png"
FORMATOPTION "TRANSPARENT=OFF"
FORMATOPTION "INTERLACE=ON"
END
LAYER
NAME 'calle'
MAXSCALE 5000
TYPE LINE
DATA 'calle.shp'
METADATA
'wms_title' 'calle'
END
STATUS DEFAULT
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'datum=WGS84'
'no_defs'
''
END
#LABELITEM 'ONEWAY'
CLASS
EXPRESSION ('[HWYLEVEL]' = '4' and '[ONEWAY]'='0')
#TEXT (<->)
#NAME 'calle'
STYLE
SYMBOL 'flecha_ambos'
SIZE 13
ANGLE 0
#OUTLINECOLOR 161 189 196
#COLOR 0 0 0
END
LABEL
TYPE truetype
FONT 'georgia'
SIZE 6
ANTIALIAS TRUE
COLOR 156 0 0
ANGLE FOLLOW
#MINDISTANCE -1
#MINFEATURESIZE -1
OFFSET 5 0
FORCE FALSE
POSITION CC
BUFFER 10
PARTIALS FALSE
END
END
END
SYMBOL
NAME "flecha_ambos"
TYPE PIXMAP
IMAGE
"C:/ms4w/Apache/htdocs/mapFile/mapas/etc/icons/arrow_left_right.png"
GAP -50
END
RG
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users