[mapserver-users] MapServer: Add Points on the fly
Ed McNierney
ed at topozone.com
Fri Aug 30 06:25:07 PDT 2002
Pradeep -
Sure - look in the MapServer docs for how you can add points (features) to a layer using HTTP querystring parameters. It's verbose but easy to do for a few points. Look at the bottom of the "CGI reference" section of the docs, at:
http://mapserver.gis.umn.edu/doc36/cgi-reference.html
(that's a pointer to the 3.6 docs, but the feature's been there for a while).
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
ed at topozone.com
(978) 251-4242
-----Original Message-----
From: Lowell Filak [mailto:lfilak at medinaco.org]
Sent: Friday, August 30, 2002 9:12 AM
To: Pradeep; mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] MapServer: Add Points on the fly
Using Mapscript you can record a mouse click on the map image (same as with a zoom operation) and use the coordinates of the mouse click to create a point shape and additionally add data to a dbf file for the shape. The tcounts.pl example in the wiki has example code that creates both point shapes and adds them to a shapefile and also adds dbf records for each point.
HTH
Lowell F.
The following message was sent by "Pradeep" <pradeepkumar at infotech.stph.net> on Fri, 30 Aug 2002 10:05:04 +0530.
> Hello
> We are building a sample application using Maserver, we have a
> requirement
> in which we are supposed to add user defined points on the map that are
> ultimately written to the data base or the shape files, I wish to know if we
> can dynamically add points information to the map from the front end. If so
> can any one help me with getting started, through some examples, or some
> guidance for which I will be very grateful...
> Thank You
> Pradeep
More information about the MapServer-users
mailing list