[Mapserver-users] label
Michael Schulz
mschulz at webgis.de
Thu May 6 00:50:31 PDT 2004
Hi Leonardo,
that should be no problem, just define the label for the street layer in
your mapfile sth. like this:
LABEL
TYPE truetype # label rotation only works with truetype fonts
FONT arial
BUFFER 1
COLOR 50 50 50
FORCE FALSE
OFFSET 0 0
ANGLE auto # this automatically rotates the label along the lines shape
features
OUTLINECOLOR 255 255 255
PARTIALS TRUE
END
It doesn't (shouldn't ;-)) matter what you use to draw the map, either
php/perl/python-mapscript or cgi version.
Only if you draw single layers with mapscript layerObj.draw() then you
have to draw the labelcache at some point otherwise no labels will
appear at all.
HTH, Michael
leo.olivieri at tin.it schrieb:
> Hello list
> I have a problem with labeling line features
>
> i have the shapefile as
>
>
> ENTITY CODICE ELEVATION THICKNESS COLOR TEXT
> Text TOPO019 0,00000 0,00000 2 220
> Text TOPO024 0,00000 0,00000 1 Via Palazzina
> Text TOPO024 0,00000 0,00000 1 Via Levrini
> Text TOPO024 0,00000 0,00000 1 Via Levrini
>
>
> where text is linked with line(roads).
>
> Is it possible to draw the test as
> http://www.zopecms.de/bohrdatenportal/labeltest_shp2img.png
> with PhpMapscript?What?
>
> Thanks in advanced.
> Leonardo
>
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
--
-----------------------------------------------------------
Michael Schulz in medias res
Dipl.-Geologe Gesellschaft für
Informationstechnologie mbH
In den Weihermatten 66
79108 Freiburg
0761 55695-95 (Fax 96)
mschulz at webgis.de www.webgis.de/www.zopecms.de
More information about the MapServer-users
mailing list