[Mapserver-users] Fwd: Mapserver-label and symbol

Steve Lime steve.lime at dnr.state.mn.us
Thu Apr 3 12:39:32 EST 2003


Received: from mail.state.mn.us
	(state.mn.us [156.99.125.109])
	by co5.dnr.state.mn.us; Sun, 30 Mar 2003 23:32:50 -0600
Return-Path: <00319499d at polyu.edu.hk>
Received: from smtp4.polyu.edu.hk by mail.state.mn.us with ESMTP for steve.lime at dnr.state.mn.us; Sun, 30 Mar 2003 23:32:42 -0600
Received: from webmail.polyu.edu.hk (webmail2.polyu.edu.hk [158.132.14.33])
	by smtp4.polyu.edu.hk (Mirapoint Messaging Server MOS 3.2.0-GA)
	with ESMTP id ALP28121;
	Mon, 31 Mar 2003 13:32:35 +0800 (HKT)
X-WebMail-UserID: 00319499d
Date: Mon, 31 Mar 2003 13:32:42 +0800
Sender: 00319499d <00319499d at polyu.edu.hk>
From: 00319499d <00319499d at polyu.edu.hk>
To: steve.lime at dnr.state.mn.us
X-EXP32-SerialNo: 00002817
Subject: Mapserver-label and symbol
Message-Id: <3E9131AE at webmail.polyu.edu.hk>
X-WebMail-Urgent: Y
X-Priority: 1
X-Mailer: WebMail (Hydra) SMTP v3.62
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

Dear Sir,

I am a unversity student doing a project on mapserver. I have some problems in 
adding labels/symbols on the map. I want to add a label on some specific 
positions on the map but not all the features on a layer.

For example,
# 4 layer RAIL
  layer
type line
    classitem "FNODE_"
    data "RAIL_arc_arc"
    footer "RAIL_arc_arc_footer.html"
    group "RAIL"
    header "RAIL_arc_arc_header.html"
    labelcache on
    labelitem "FNODE_"
    name "RAIL"
    postlabelcache true
    status on

    #  class RAIL_1
    class
      template "RAIL_arc_arc_query.html"
      backgroundcolor 128 128 128
      color 128 128 128
      name "RAIL_1"
      outlinecolor 0 0 0
SYMBOL 'interstate_shield'
    end
  end

The above code in mapfile will display all the features in the RAIL layer. 
However, I only want to display symbol on a specific coordinate and all the 
other things left normal.

I have spent a lot of time on it but not succeed.
Can you give me some examples of how to do this?
I will be very grateful if you can help.

Thank you very much.

Joyce




More information about the mapserver-users mailing list