Zoom to location by name or other parameter using cgi mapserv
Ben Madin
ben at REMOTEINFORMATION.COM.AU
Thu Dec 20 17:20:57 PST 2007
G'day all,
I have a list of small polygons spread out over about 2500 kms, and I
want to be able to zoom to a polygon by choosing it from a list.
The data is all in a postgis database, so I can get the polygon
names, gid and centroid location.
I had through I would put the names into a select list, and have the
gid as the option value.
My question is, can I set a centre based on a gid in a call to the
cgi, or can I put the centroid of the polygon into the options value
and append it to the cgi call. What is the appropriate format for this?
It is only a small application, and I done similar for other projects
in php/mapscript, but I would rather stick to the cgi for now.
If someone can tell me I promise I will write a note for the website!
cheers
Ben
--
Ben Madin
REMOTE INFORMATION
t : +61 8 9192 5455
f : +61 8 9192 5535
m : 0448 887 220
Broome WA 6725
ben at remoteinformation.com.au
Out here, it pays to know...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20071221/d2895a97/attachment.htm>
More information about the MapServer-users
mailing list