offset symbols

John Hockaday johnh at erin.gov.au
Mon Aug 21 21:50:04 PDT 2000


Steve,

No matter what key strokes I use I either get an "getSymbol():
Incorrect symbol. (0):(376) " error or I get a square for the symbol.
Do I need to generate a key map file? and if I do what is the format
and name of the map file? I'm just using the Solaris openwindows
Symbols.ttf file for the font file.

Johnh

> Date: Fri, 18 Aug 2000 08:21:13 -0500
> From: "Stephen Lime" <steve.lime at dnr.state.mn.us>
> To: <johnh at erin.gov.au>, <mapserver-users at lists.gis.umn.edu>
> Subject: Re: offset symbols
> Mime-Version: 1.0
> Content-Disposition: inline
> Content-Transfer-Encoding: 8bit
> X-MIME-Autoconverted: from quoted-printable to 8bit by gaea.erin.gov.au id 
XAA07834
> 
> The symbol fontsets generally don't have many characters so you can use just 
letters on your keyboard. I believe there is a utility included with NT for 
example that will let you preview all characters in a font. So if "g = circle" 
use "g" in the TEXT parameter. In most cases thats all there is to it. Freetype 
does recognize the ¡ type mapping but symbol fonts don't seem to contain those 
characters very often. Keep it simple. a=, b= and so on.
> 
> Steve
> 
> >>> John Hockaday <johnh at erin.gov.au> 08/18/00 02:18 AM >>>
> Steve,
> 
> That's been a big help. I've managed to get labels to use the
> Symbol.ttf font but I can't seem to work out the key mapping.  All I
> seem to be able to get is a square.
> 
> Does anyone know the syntax for the key mapping?  I've tried character
> reference mapping eg. ¡ and hexadecimal mapping, such as, \161 and
> x161 but I either get an "incorrect symbol" error or a square.
> 
> Thanks in advance.
> 
> 
> Johnh
> 
> > Stephen Lime" <steve.lime at dnr.state.mn.us> writes
> > 
> > No, symbols cannot be offset at persent although I don't see why not. I'll 
> look into adding this. There are work arounds. You can use truetype fonts as 
> labels right? So there's no reason you can't use font symbols (i.e. circles 
and 
> other shapes) instead of text. Use the class "TEXT" parameter to map a 
keyboard 
> value to a symbol. With labels you can use the  normal 9 positions and can 
even 
> offset futher with the OFFSET parameter. I've done this in the past and it 
works 
> fine. Note that because your label is actually the symbol you can't label 
these 
> symbols without another layer.
> > 
> > Steve
> > 
> > >>> John Hockaday <johnh at erin.gov.au> 08/15/00 00:57 AM >>>
> > Hi,
> > 
> > Does anyone know if symbols can be offsetted from the point location?
> > 
> > OR
> > 
> > Can labls use symbols for the text instead of fonts?
> > 
> > I have to plot six different symbols, which could vary by six different
> > colours, around some point data.  The symbols need to be chosen by the
> > "year" attribute in the attribute table and the colour needs be chosen
> > by the "rate" attribute in the same table.
> > 
> > I thought that I could have six layers, one for each year, and then
> > colour the symbols by the "rate" attribute value.  Each year layer
> > could then be ploted on top of each other with the symbol at a
> > different offset to the point for each year.
> > 
> > Any thoughts to help me out?
> > 
> > Thanks in advance.
> > 
> > 
> > Johnh
> > 
> > 
> 
> 




More information about the MapServer-users mailing list