[Cartoweb-users] MapFile based upon user credentials

Milo van der Linden mlinden at zeelandnet.nl
Wed Aug 29 05:40:39 EDT 2007


Hello Oliver!

Thank you for the fast response!
Oliver Christen schreef:
> Hi Milo
>  
> cant you use the existing system ?
> http://www.cartoweb.org/doc/cw3.3/xhtml/user.security.html#user.security.plugin_permissions.layers
Partially I can use it to map usertypes. But the biggest challenge is 
the fact that the layer is created by dynamically selecting objects from 
a postGIS database. So the DATA parameter in the Mapfile is dynamic:
DATA 'the_geom from select * from sketch_points where pointsetID = %X% 
as skpt USING unique sketch_id' where %X% is replaced by a variable.

This is repeated for a set of 8 layers.

Basically I would like to program to operate like this:

- User accesses the URL and a general map of the world is shown (ready)
    (user specific sequence)
    - User logs in: a pull-down box for a map for that user comes 
available. a second pull-down comes available that presents the user 
with the option to select a theme ((ready, but not yet user-specific)
    - In the pull-down a default map is selected, user zooms automatic 
to the bbox of that map (already implemented; uses a view in the postGIS 
db containing the BBOX with a buffer)
    - Layers come available in the themes dialog. Default the user 
specific layers get turned on. (to be implemented)
    - User selects a theme in a second pull-down box -> a thematic layer 
should be created and shown
(end of sequence)
- User selects another map
- for the map that was already open the user specific layers should be 
removed, the user specific sequence is ran again.
- Users should also be able to switch themes

>  
> if you want to change layer data on-the-fly, you can change some (not 
> all) parameters via mapOverlay
> see example there
> http://lists.maptools.org/pipermail/cartoweb-users/2007-March/002236.html
I will look  at the sample!
> dont hesitate to look at the code of ServerMapOverlay.php to see the 
> available action possible, its pretty strightforward
> also 
> http://www.cartoweb.org/doc/cw3.3/apidoc/Plugins/ServerMapOverlay.html

>  
> regards
> Oliver
>  
>
>     ----- Original Message -----
>     *From:* Milo van der Linden <mailto:mlinden at zeelandnet.nl>
>     *To:* cartoweb-users at lists.maptools.org
>     <mailto:cartoweb-users at lists.maptools.org>
>     *Sent:* Wednesday, August 29, 2007 10:40 AM
>     *Subject:* [Cartoweb-users] MapFile based upon user credentials
>
>     Hello list!
>
>     I want my mapfile to have layers based upon user credentials. For
>     instance:
>     - A user logs in to the system. The moment the user logs in, a
>     specific postGIS database should be accessed for certain fixed
>     layers. Within the query to access the layer, a parameter
>     pointsetID is introduced restricting the user to only get points
>     that validate with the pointsetID should get returned.
>
>     My feeling tells me to use the mapOverlay, but it is not to well
>     documented.
>
>     Any tips or tricks?
>     -- 
>
>
>     	
>
>     Milo van der Linden
>     skype: milovanderlinden <skype:milovanderlinden?add>
>     mlinden at zeelandnet.nl <mailto:mlinden at zeelandnet.nl>
>     milovanderlinden at gmail.com <mailto:milovanderlinden at gmail.com>
>     milo at 3dsite.nl <mailto:milo at 3dsite.nl>
>     http://www.3dsite.nl
>
>     	  	
>
>     De informatie in dit bericht reflecteert mijn persoonlijke mening
>     en niet die van een bedrijf of instantie. Aan de informatie kunnen
>     geen rechten worden ontleend. Indien dit bericht onderdeel is van
>     een forum, mailing-list of community dan gelden automatisch de bij
>     het betreffende medium behorende voorwaarden. The information in
>     this message reflects my personal opinion and not that of a
>     company or public body. All rights reserved.If this message is
>     contained in a mailing-list or community, the rights on the medium
>     are automatically adapted.
>
>     ------------------------------------------------------------------------
>     _______________________________________________
>     Cartoweb-users mailing list
>     Cartoweb-users at lists.maptools.org
>     http://lists.maptools.org/mailman/listinfo/cartoweb-users
>


-- 


	

Milo van der Linden
skype: milovanderlinden <skype:milovanderlinden?add>
mlinden at zeelandnet.nl <mailto:mlinden at zeelandnet.nl>
milovanderlinden at gmail.com <mailto:milovanderlinden at gmail.com>
milo at 3dsite.nl <mailto:milo at 3dsite.nl>
http://www.3dsite.nl

	  	

De informatie in dit bericht reflecteert mijn persoonlijke mening en 
niet die van een bedrijf of instantie. Aan de informatie kunnen geen 
rechten worden ontleend. Indien dit bericht onderdeel is van een forum, 
mailing-list of community dan gelden automatisch de bij het betreffende 
medium behorende voorwaarden. The information in this message reflects 
my personal opinion and not that of a company or public body. All rights 
reserved.If this message is contained in a mailing-list or community, 
the rights on the medium are automatically adapted.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070829/aab0ce0e/attachment-0001.html


More information about the Cartoweb-users mailing list