drawLabelCache problem in 4.8.2

Paul Moen pmoen at STATE.ND.US
Thu Mar 23 11:39:36 PST 2006


This may be related to my problem with symbols in the label.  If you are
using a symbol to label try commenting it out to see if it will label with
text. 


>The annotation layer for the line shape works when the symbol is not used.
>Therefore, something is wrong with the way I use my symbol.  This worked in
>4.8.1.  So, the new question is what is wrong with my symbol and the way I
>am using it?

>On 3/23/06 9:35 AM, "Paul Moen" <pmoen at state.nd.us> wrote:

>> My ANNOTATION layer line types worked in 4.8.1 and do not in 4.8.2.  The
httpd
>> daemon takes all
>> the processor and times out in 60 seconds when I zoom to a level the label
>> appears.  This only
>> seems to be a problem on the annotation for line layers.
>> 
>> LAYER # Line Shape File
>>     NAME "a_State and Federal Roads"
>>     DATA roadsstatefed
>>     GROUP "Transportation"
>>     TEMPLATE "noexist"
>>     STATUS ON
>>     TYPE ANNOTATION
>>     LABELITEM "HWY"
>>     CLASS
>>       TYPE ANNOTATION
>>       MAXSCALE 1000000
>>       NAME "0_0"
>>       EXPRESSION ('[RTE_SIN]' eq 'S')
>>       COLOR 0 0 0
>>       SYMBOL "../symbols/largerimages/sthwy.gif"
>>       LABEL
>>          MINFEATURESIZE 50
>>          MINDISTANCE 150
>>          SIZE SMALL
>>         COLOR 0 0 0
>>       END
>>     END # Standard Road Signs - State
>>    END
>> 
>> This works for the polygon layer countypoly.
>> 
>> LAYER # Polygon shap file
>>     NAME "a_Counties"
>>     DATA countypoly
>>     GROUP "Political Boundaries"
>>     STATUS ON
>>     TYPE ANNOTATION
>>     LABELITEM "NAME_CAPS"
>>     CLASS
>>       NAME "0"
>>       TYPE ANNOTATION
>>       EXPRESSION ('[NAME_CAPS]' eq 'MOUNTRAIL')
>>       MINSCALE 500000
>>       LABEL
>>         FONT timesbold
>>         TYPE TRUETYPE
>>         OUTLINECOLOR 150 255 150
>>         SIZE 7
>>         COLOR 100 100 100
>>         ANGLE AUTO
>>         PARTIALS FALSE
>>         POSITION CC
>>       END
>>     END
>> 
>> I get no errors in http error_log or in the console.log.  Did something
change
>> that makes my
>> annotation layer definitions for lines wrong?  Can anyone see if there is
>> something that I am
>> missing or did something break in 4.8.2?
>> 
>> Thanks,
>> 
>> Paul Moen

On 3/23/06 1:09 PM, "Jeff Hoffmann" <jeff at PROPERTYKEY.COM> wrote:

> I'm setting up a new server and decided to go with the newest version of
> MapServer, but I'm having a problem with getting one of my perl scripts
> to run.  I've isolated the problem to the call to drawLabelCache -- once
> the script hits that line, it pegs the CPU until the web server request
> times out.  I've run the same script on probably every 4.x version of
> MapServer there is up til now without problems, so I went and grabbed a
> copy of the 4.8.1 source and compiled it on that machine & it worked
> fine, so I'm guessing that some sort of bug got introduced between releases.

Paul T. Moen
pmoen at state.nd.us
701-328-2434
701-328-3696 (fax)
ND State Water Commission



More information about the MapServer-users mailing list