Annotation for line layer problem

Paul Moen pmoen at STATE.ND.US
Thu Mar 23 10:41:19 PST 2006


An update.

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

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: interstate.gif
Type: application/octet-stream
Size: 949 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060323/263ddcad/attachment.obj>


More information about the MapServer-users mailing list