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 <[EMAIL PROTECTED]>
Information Technologies for the Agro-Environment

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to