[mapserver-users] vertical alignment of symbols along a line 2
http://osgeo-org.1803224.n2.nabble.com/vertical-alignment-of-symbols-along-a-line-td4617860.html i got the same problem. OFFSET -99 do nothing someone got new tips ? Marc-André Trottier ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] vertical alignment of symbols along a line
I use truetype fonts to render symbols along a line. The fonts are always parallel to the line. Unfortunately I see the fonts are always centered vertically along the line. Even symbols like the '^' or '`' symbol appear on the line. How can I disable this vertical alignment? Here you see an example of a triangle symbol that should appear above the line. http://n2.nabble.com/file/n4617860/example.png Here you see an example of the '^' symbol, also aligned on the line. http://n2.nabble.com/file/n4617860/example2.png - http://www.topspots.org -- View this message in context: http://n2.nabble.com/vertical-alignment-of-symbols-along-a-line-tp4617860p4617860.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] vertical alignment of symbols along a line
Perhaps you could use OFFSET (with -99) - I have not tried it. See: http://mapserver.org/mapfile/symbology/construction.html A general mechanism (CENTER/ORIGIN) for defining the centre point of a symbol for more control of the precise placement of symbols was suggested in RFC 45 http://mapserver.org/development/rfc/ms-rfc-45.html , but I don't think this has been implemented yet. Håvard Tveite On 2/23/2010 10:31 AM, windfreak wrote: I use truetype fonts to render symbols along a line. The fonts are always parallel to the line. Unfortunately I see the fonts are always centered vertically along the line. Even symbols like the '^' or '`' symbol appear on the line. How can I disable this vertical alignment? Here you see an example of a triangle symbol that should appear above the line. http://n2.nabble.com/file/n4617860/example.png Here you see an example of the '^' symbol, also aligned on the line. http://n2.nabble.com/file/n4617860/example2.png - http://www.topspots.org -- Håvard Tveite Department of Mathematical Sciences and Technology, UMB Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] vertical alignment of symbols along a line
In your symbol definition, make your GAP value negative. e.g. SYMBOL NAME tie TYPE TRUETYPE FONT arial-bold CHARACTER | GAP -4 ANTIALIAS TRUE END David. -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of windfreak Sent: Tuesday, February 23, 2010 3:32 AM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] vertical alignment of symbols along a line I use truetype fonts to render symbols along a line. The fonts are always parallel to the line. Unfortunately I see the fonts are always centered vertically along the line. Even symbols like the '^' or '`' symbol appear on the line. How can I disable this vertical alignment? Here you see an example of a triangle symbol that should appear above the line. http://n2.nabble.com/file/n4617860/example.png Here you see an example of the '^' symbol, also aligned on the line. http://n2.nabble.com/file/n4617860/example2.png - http://www.topspots.org -- View this message in context: http://n2.nabble.com/vertical-alignment-of-symbols-along-a-line-tp4617860p4617860.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ 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
Re: [mapserver-users] vertical alignment of symbols along a line
OFFSET 2 -99 would be the way to go, but isn't the most optimal solution Havard, we're paving the road right now for the ORIGIN to happen, just have to be patient ;) -- thomas On Tue, Feb 23, 2010 at 08:47, Havard Tveite havard.tve...@umb.no wrote: Perhaps you could use OFFSET (with -99) - I have not tried it. See: http://mapserver.org/mapfile/symbology/construction.html A general mechanism (CENTER/ORIGIN) for defining the centre point of a symbol for more control of the precise placement of symbols was suggested in RFC 45 http://mapserver.org/development/rfc/ms-rfc-45.html , but I don't think this has been implemented yet. Håvard Tveite On 2/23/2010 10:31 AM, windfreak wrote: I use truetype fonts to render symbols along a line. The fonts are always parallel to the line. Unfortunately I see the fonts are always centered vertically along the line. Even symbols like the '^' or '`' symbol appear on the line. How can I disable this vertical alignment? Here you see an example of a triangle symbol that should appear above the line. http://n2.nabble.com/file/n4617860/example.png Here you see an example of the '^' symbol, also aligned on the line. http://n2.nabble.com/file/n4617860/example2.png - http://www.topspots.org -- Håvard Tveite Department of Mathematical Sciences and Technology, UMB Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ ___ 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
Re: [mapserver-users] vertical alignment of symbols along a line
If your symbol is relatively simple, you could use a vector symbol. Below is a method of rendering a line with hachures (short lines on one side of the main line): In your layer def: CLASS NAME 'hachure' STYLE COLOR 180 180 180 WIDTH 1 END STYLE COLOR 180 180 180 SIZE 16 SYMBOL 'hachure' END With a symbol def: Symbol NAME 'hachure' TYPE VECTOR POINTS 5 5 5 10 END PATTERN 6 6 END FILLED TRUE END To draw a triangle instead of a line, the POINTS object would have to include a third vertex (four if you want it filled?); something like: POINTS 5 5 10 10 15 5 5 5 END But you'd have to experiment. The key (I think) to offsetting the symbol is that the symbol's vectors are drawn in the top half of the symbol box, in this case the symbol box is 0 to 10 with vectors only in the 5 to 10 range. Best Regards, Brent Fraser windfreak wrote: I use truetype fonts to render symbols along a line. The fonts are always parallel to the line. Unfortunately I see the fonts are always centered vertically along the line. Even symbols like the '^' or '`' symbol appear on the line. How can I disable this vertical alignment? Here you see an example of a triangle symbol that should appear above the line. http://n2.nabble.com/file/n4617860/example.png Here you see an example of the '^' symbol, also aligned on the line. http://n2.nabble.com/file/n4617860/example2.png - http://www.topspots.org ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users