[mapserver-users] About labeling

Carlos Ruiz boolean10001 at yahoo.com
Wed Aug 6 11:53:55 PDT 2008


I have a layer wich contains the street names, and i want to display it. Then, system crashes
saying that CGI / FastCGI detected a problem and it must close.

The error signature throws this:

szAppName : php-cgi.exe     szAppVer : 5.2.5.5     szModName : libmap.dll     
szModVer : 0.0.0.0     offset : 0002fded     

So, i was wondering why ... and then, i noticed this:

I'm showing an embeded scalebar, so i need to call the drawLabelCache method to render
it.

$img = $map->draw();
$map->embedScalebar($img);
$map->drawLabelCache($img);

Then, my street names layer looks like this:

LAYER

    NAME "streetnames"
    CONNECTION "..."
    CONNECTIONTYPE POSTGIS
    DATA "the_geom from streetnames"
    STATUS OFF
    TYPE POINT
    TRANSPARENCY 100
    LABELITEM "textstring"
    CLASS
        LABEL
            FONT "arial"
            TYPE TRUETYPE
            COLOR 255 128 0
            OUTLINECOLOR 255 255 255
            SIZE 5
            ANGLE [text_angle]
            PARTIALS FALSE
        END
    END
    MINSCALE 0
    MAXSCALE 10000
END

Then I added within the LAYER section the tag LABELCACHE OFF, and it works just fine.

Without seeing source code I figure that maybe the LabelCache pointers are to few, isn't ? 

Or someone know what else could be happening ?



IC Carlos Ruiz 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080806/b2734152/attachment.htm>


More information about the MapServer-users mailing list