draw a layer with labels but no pointsymbols

Steve Lime Steve.Lime at DNR.STATE.MN.US
Wed Jun 13 10:17:35 EDT 2007


Johan: If you want just labels use TYPE ANNOTATION...

Steve

>>> On 6/13/2007 at 8:24 AM, in message
<D93CFEAA72FA764885CC1FDA94A1D89C02D16E91 at WMRI000166.corp.wmdata.net>, Hallgren
Johan E <jhhal at WMDATA.COM> wrote:
> I have had some troubles drawing a layer only with labels, and no
> points. I hade to use an empty STYLE-tag (see below), otherwise the
> image wasn't generated. 
> 
> It's a bit strange to use an empty tag in that situation, and it was
> hard to find the problem. 
> 
> These two examples works:
> 
>  
> 
> LAYER
> 
>   NAME "31"
> 
>   TYPE POINT
> 
>   DATA "C:\TEMP\SVEASKOG\data\PPL_TRK_P.shp"
> 
>   STATUS OFF
> 
>   CLASS
> 
>     TEXT  '8'
> 
>     LABEL
> 
>       COLOR 255 0 0
> 
>       TYPE TRUETYPE
> 
>       FONT Verdana
> 
>       SIZE 18
> 
>     END
> 
>     STYLE
> 
>     END
> 
>   END
> 
> END
> 
>  
> 
> LAYER
> 
>   NAME "32"
> 
>   TYPE POINT
> 
>   FEATURE
> 
>     POINTS
> 
>       100 100
> 
>     END
> 
>   END
> 
>   TRANSFORM false
> 
>   STATUS ON
> 
>   CLASS
> 
>     TEXT  '8'
> 
>     LABEL
> 
>       COLOR 255 0 0
> 
>       TYPE TRUETYPE
> 
>       FONT Verdana
> 
>       SIZE 18
> 
>     END
> 
>     STYLE
> 
>     END
> 
>   END
> 
> END
> 
>  
> 
> But not these
> 
>  
> 
> LAYER
> 
>   NAME "31"
> 
>   TYPE POINT
> 
>   DATA "C:\TEMP\SVEASKOG\data\PPL_TRK_P.shp"
> 
>   STATUS OFF
> 
>   CLASS
> 
>     TEXT  '8'
> 
>     LABEL
> 
>       COLOR 255 0 0
> 
>       TYPE TRUETYPE
> 
>       FONT Verdana
> 
>       SIZE 18
> 
>     END
> 
>   END
> 
> END
> 
>  
> 
> LAYER
> 
>   NAME "32"
> 
>   TYPE POINT
> 
>   FEATURE
> 
>     POINTS
> 
>       100 100
> 
>     END
> 
>   END
> 
>   TRANSFORM false
> 
>   STATUS ON
> 
>   CLASS
> 
>     TEXT  '8'
> 
>     LABEL
> 
>       COLOR 255 0 0
> 
>       TYPE TRUETYPE
> 
>       FONT Verdana
> 
>       SIZE 18
> 
>     END
> 
>   END
> 
> END
> 
>  
> 
> /Johan
> 
> 
> ___________________________________
> 
> 
> Johan Hallgren
> 
> 
>  
> 
> WM-data a LogicaCMG company 
> 
> Pelle Bergs backe 3
> 
> Box 1938, 791 19 Falun
> 
> Tel: 023-547 46 (int: +46-2354746)
> 
> Mobil: 070-588 44 28 (int: +46-705884428)
> 
> johan.e.hallgren at wmdata.com 
> <BLOCKED::mailto:johan.e.hallgren at wmdata.com> 
> 
> http://www.wmdata.se 
> <BLOCKED::/exchweb/bin/redir.asp?URL=http://www.wmdata.se/> 
> 
>  



More information about the mapserver-dev mailing list