CGI MapServer, Dynamic Points

Chip Hankley Chip.Hankley at RMTINC.COM
Fri May 26 08:43:07 EDT 2006


Thanks, but I don't think that's what I was looking for. I have a bunch
of observations (2000+) in a database (MS Access) where I have X and Y
coordinates for each observation. I want to be able to create a layer in
the mapfile that reads the database directly and plots them on a map. In
the ESRI world this would be an event theme.

I'm assuming that in the example provided, I would end up with a *very*
long URL to make all the points appear.
 
I got one response that said I should use OGR VRT tables, so I'm going
to try that.
 
Thanks for the respone.
 
Chip

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


>>> Steve Lime <Steve.Lime at DNR.STATE.MN.US> 5/25/2006 3:33 PM >>>

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

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