draw a layer with labels but no pointsymbols

Hallgren Johan E jhhal at WMDATA.COM
Wed Jun 13 09:24:32 EDT 2007


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/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20070613/b0de4b3c/attachment.html


More information about the mapserver-dev mailing list