[Mapserver-users] Roads displaying street directionality

Stepan Kafka stepan.kafka at centrum.cz
Tue Oct 21 23:42:21 PDT 2003


Hi,

the truetype line symbols have currently these options:

GAP [int]
	Given in pixels. This defines a distance between symbols for TrueType
lines. If set negative, the symbol is draw in the direction "as digitized".
If positive, the symbols are rotated to be cartographicaly properly oriented
(not bottom up)

POSITION [CC|UR|UL|UC|LR|LL|LC] Symbol position.
CC - on the line (default)
UC - above the line in regard of line direction (out of clockwise oriented
polygons)
LC - below the line in regard of line direction (inside clockwise oriented
polygons)
UR, UL, LR, LL - always above/below line regardless the line direction

Examples:

#this may used for arrows in the street direction
SYMBOL
  NAME "arrow"
  TYPE truetype
  FONT arial
  CHARACTER "->"
  GAP -25
END

#this may used for bicycle paths symbols
SYMBOL
  NAME "bicycle"
  TYPE truetype
  FONT arial
  CHARACTER "oo"
  POSITION UL
  GAP 20
END

It requires some experimenting with these parameters. It would be nice if
somebody translates it to human readable form :) and add it to wiki and
documentation.

Stepan Kafka
Help Service Remote Sensing
tel: +420-327514118
mailto:kafka at email.cz
ICQ: 294002967
http://www.bnhelp.cz



> Please add any symbology examples that you have to the Wiki
>
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples
>
> Also, it seems like it is sometimes difficult for new users to
> create symbols.  If someone has a fairly complete symbol file, it
> would be great if they could include it in the install package or
> demo or put a link on the Wiki page.
>
> David.
>
> > ----------
> > From: 	woodbri at swoodbridge.com[SMTP:woodbri at swoodbridge.com]
> > Reply To: 	woodbri at swoodbridge.com
> > Sent: 	Tuesday, October 21, 2003 9:57 AM
> > To: 	mapserver Users
> > Subject: 	[Mapserver-users] Roads displaying street directionality
> >
> > Hi all,
> >
> > I know we have done a lot of work to support truetype font symbols
> > for line drawing styles, but this is not intuitive.
> >
> > For example, I want to show road segment directionality. I suppose I
> > create a symbol with '-->' and '<--'  out of truetype characters but
> > I have a lot of different road styles and widths that I use like:
> >
> > this one is like a railroad symbol, but I probably need three classes
> > to cover from-to direction, to-from direction and the two-way street.
> >
> > -------->--------->--------->-------
> >
> > So would this be just a line with an overlayed dashed line using a
> > truetype symbol?
> >
> > or using casement styles like:
> >
> > ----------------------------------------
> >     -->            -->           -->
> > ----------------------------------------
> >
> > And then this is just a thick line with an overlayed dashed line
> > using a truetype symbol?
> >
> > Has anyone else done this before? How did you do it?
> >
> > Does anyone have a library of line styles using truetype symbols that
> > they would like to share on the wiki? I would be happy to add them to
> > the wiki.
> >
> > -Steve
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
> ---
> Pøíchozí zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.528 / Virová báze: 324 - datum vydání: 16.10.2003
>
---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.528 / Virová báze: 324 - datum vydání: 16.10.2003




More information about the MapServer-users mailing list