doubled labels
Didrik Pinte
dpinte at ITAE.BE
Sat Aug 18 17:32:20 PDT 2007
Hi,
I'm developping a php/mapscript application with mapserver 4.10.
I have a basic layer with the following definition :
LAYER
NAME "test_layer"
STATUS ON
TYPE POINT
TOLERANCE 10
LABELCACHE ON
LABELMAXSCALE 40000
CLASS
NAME "Sites"
COLOR 255 0 0
OUTLINECOLOR 255 0 0
SIZE 10
SYMBOL "circle"
LABEL
POSITION AUTO
ANGLE AUTO
SIZE medium
COLOR 0 0 0
TYPE bitmap
FONT arial
ANTIALIAS true
BACKGROUNDCOLOR 255 255 255
PARTIALS false
END
END
PROJECTION
[...]
END
END
I fill in the layer using php/mapscript with the following code :
$shp = ms_newShapeObj(MS_SHAPE_LINE);
$pt = ms_newLineObj();
$pt->addXY($point->x,$point->y);
$pt->addXY($point->x,$point->y);
$shp->add($pt);
$shp->classindex = 0;
$shp->set('text', $obj->get_id());
$lyr->addFeature($shp);
It works fine except that the text label appears twice on the produced
image.
What is wrong with my configuration ? Any clue ?
Thanks
--
Didrik Pinte <dpinte at itae.be>
Information Technologies for the Agro-Environment
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070819/f8df6627/attachment.sig>
More information about the MapServer-users
mailing list