[mapserver-users] Truetype line symbols
Stepan Kafka
stepan.kafka at centrum.cz
Thu May 23 04:11:25 PDT 2002
This feature has been added to the CVS during march 2002, so you need use
3.6 version after that date.
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: 23. kvìtna 2002 8:12
> Komu: Stepan Kafka; mapserver-users at lists.gis.umn.edu
> Pøedmìt: RE: [mapserver-users] Truetype line symbols
>
>
> Stefan, thanks for your help
>
> But I'm using mapserver 3.5, and my question is:
> Are the ttf line symbols available in this version (3.5) or I need upgrade
> to 3.6?
>
>
> Xisco Guaita
>
> > -----Mensaje original-----
> > De: owner-mapserver-users at lists.gis.umn.edu
> > [mailto:owner-mapserver-users at lists.gis.umn.edu]En nombre de Stepan
> > Kafka
> > Enviado el: martes, 21 de mayo de 2002 15:14
> > Para: Xisco Guaita; mapserver-users at lists.gis.umn.edu
> > Asunto: RE: [mapserver-users] Truetype line symbols
> >
> >
> > 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
> >
> >
> > > -----Puvodní 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. kvetna 2002 13:52
> > > Komu: mapserver-users at lists.gis.umn.edu
> > > Predmet: [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