[Cartoweb-users] Re: postGIS dataset
Oliver Christen
oliver.christen at camptocamp.com
Fri Mar 7 02:02:11 EST 2008
Hi
indeed, the mapOverlay would be perfeclty fine, as you would simply have to set on the fly the DATA parameter of your layer depending of the user choice.
if there is only one dataset displayed at once, you only need one layer in your mapfile and use mapOverlay to change the DATA.
if the user can select an undefined quantity of dataset, the easiest way is to duplicate an existing layer (where you have set default CLASS and STYLE), set its name and data and insert it.
all the actions of mapOverlay are explained in http://www.cartoweb.org/doc_head/docbook/xhtml/dev.mapoverlay.html
and you have a basic example there http://lists.maptools.org/pipermail/cartoweb-users/2007-March/002236.html
regards
Oliver
----- Original Message -----
From: bmw at benwyss.com
To: oliver.christen at camptocamp.com
Cc: cartoweb-users at lists.maptools.org
Sent: Thursday, March 06, 2008 4:45 PM
Subject: postGIS dataset
Hello, my cartoweb project involves mapping information from a postGIS dataset, I would like the user to be able to select the dataset to be maped, each data set has a unique identifiyer eg: http://quake/calculationSession.xsp?id=23 http://quake/calculationSession.xsp?id=24 and so on. Whats is the best way to do this? I have been looking into the MapOverlay plugin using a filter pluging? or are there other options?
Thank you, Ben Wyss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20080307/dc67f6a0/attachment.html
More information about the Cartoweb-users
mailing list