CGI MapServer, Dynamic Points

Steve Lime Steve.Lime at DNR.STATE.MN.US
Thu May 25 16:33:51 EDT 2006


You mean add points dynamically to a map via a URL call to the CGI? If so that's
pretty easy. There are 2 steps:

  1) add a layer to symbolize the points with

e.g.

LAYER
  NAME 'site'
  TYPE POINT
  STATUS OFF
  CLASS
    SYMBOL 'circle' SIZE 5 COLOR 255 0 0 OUTLINECOLOR 0 0 0
  END
END

  2) define the point in the URL

e.g.

http://maps.dnr.state.mn.us/cgi-bin/mapserv410?map=/usr/local/www/docs_maps/waters/csg/reference.map&mode=map&layer=site&map_site_feature_points=582248.23+4841497.11

You can also add text if you define a label and use map_site_feature_text to pass the text.

Steve

>>> Chip Hankley <Chip.Hankley at RMTINC.COM> 5/25/2006 11:04:07 AM >>>
I'm trying to use CGI MapServer (ie NOT MapScript) to dynamically add
points to a map based on X and Y fields in a database (currently MS
Access). Can someone point me in the right direction?
 
MapServer 4.8.3
Windows, IIS
 
TIA -

----------------------------
Chip Hankley
RMT, Inc.
chip.hankley at rmtinc.com 
608.662.5498 (Direct)
----------------------------


Outgoing messages, along with any attachments, are scanned for viruses prior to sending.
------------------------------------------------------------------------------
NOTICE--This email may contain confidential and privileged information 
for the sole use of the intended recipient.  Any review or distribution
by others is strictly prohibited.  If you are not the intended recipient,
please contact the sender immediately and delete all copies.



More information about the mapserver-users mailing list