[mapserver-users] Truetype line symbols
Stepan Kafka
stepan.kafka at centrum.cz
Tue May 21 06:14:11 PDT 2002
In 3.6 version (after march 2002) you need set gap parameter negative to
follow "as digitized" street direction. You also need to have the ms
compiled with GD < 2.0 to avoid truetype characters orientation problem! In
3.7 the syntax will be probably different.
SYMBOL
NAME "arrow+"
TYPE truetype
FONT Lucida
gap -20c #HERE !!!
character ">"
END
Stepan Kafka
> -----Pùvodní zpráva-----
> Od: owner-mapserver-users at lists.gis.umn.edu
> [mailto:owner-mapserver-users at lists.gis.umn.edu]za uivatele Xisco
> Guaita
> Odesláno: 21. kvìtna 2002 13:52
> Komu: mapserver-users at lists.gis.umn.edu
> Pøedmìt: [mapserver-users] Truetype line symbols
>
>
> Hello,
>
> I need to represent the directions of the streets with a symbol like an
> arrow. I have read in the list that the form to do it is with ttf symbols,
> but these ttf symbols don't draw in the resultant map
>
> I'm using php mapscript to access a PostgreSQL/Postgis DB
>
> Part of the map file is:
>
> SYMBOL
> NAME "arrow+"
> TYPE truetype
> FONT Lucida
> gap 20
> character ">"
> END
>
> SYMBOL
> NAME "arrow-"
> TYPE truetype
> FONT Lucida
> gap 20
> character "<"
> END
>
> LAYER
> NAME sentidos
> TYPE line
> CONNECTIONTYPE postgis
> CONNECTION "user=demo password=demoSVG dbname=demo host=192.168.1.11"
> DATA "the_geom from tramos"
> STATUS On
> FILTER "sentido <> 0"
> CLASSITEM "sentido"
> CLASS
> EXPRESSION "1"
> COLOR 200 200 200
> SYMBOL "arrow+"
> SIZE 12
> END
> CLASS
> EXPRESSION "-1"
> COLOR 200 200 200
> SYMBOL "arrow-"
> SIZE 12
> END
> END
>
> I can label the street layer with ttf fonts with no problems; but
> instead of
> being visualized the ttf symbols, the symbol by defect is visualized.
>
> MapServer version 3.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF
> INPUT=POSTGIS INPUT=SHAPEFILE
> PHP v4.0.6 './configure' '--enable-inline-optimization' '--with-pgsql'
> '--without-ttf' '-without-mysql' '--with-apxs' '--with-system-regex'
>
> Do you know what is my error?
>
> Thanks,
> Xisco Guaita
>
>
More information about the MapServer-users
mailing list