[Geomoose-users] per user layers

Jim Klassen klassen.js at gmail.com
Mon Apr 9 14:54:42 EDT 2012


Also, don't forget to password protect your datasource.  No sense hiding the layer from GeoMoose if someone can just get the data straight from MapServer anyway.

One option I've used involves separate map files for each data source and a lot of apache rules.  Another option I've used was to write a script that implements WMS via mapscript and validates off of your auth solution.

Also, don't forget the printing and query scripts need to understand the login part too.

On Apr 9, 2012, at 13:40, Dan Little <danlittle at yahoo.com> wrote:

> Replace getmapbook.php.  You'll need to create a login solution, of which there are many and varied.  Essentially it goes this like:
> 
> 
> 1. Create something like "/gis/login.php" - Then if you want , have a link there for "public" or "guests"
> 2. login.php gets the credentials, checks them against a database or LDAP/AD, and you get a role.  PHP's session functionality makes this pretty easy.  Then login.php would forward the user to "geomoose.html" (or whatever it's called on your system)
> 3. getmapbook.php, probably reads a "header.xml", then for the body (map-source's and catalog) you'd write a quick for-loop that would either use a XML/DOM building utility or just some text that makes valid XML to output in the form of a mapbook, finally a "footer.xml".  The script would populate the available layers based on the auth levels of the user and I'd probably store that info in postgresql.
> 
> From: Mark Volz <MarkVolz at co.lyon.mn.us>
> To: "geomoose-users at lists.osgeo.org" <geomoose-users at lists.osgeo.org> 
> Sent: Monday, April 9, 2012 12:59 PM
> Subject: [Geomoose-users] per user layers
> 
> Hello,
>  
> Is there a way in GeoMOOSE 2.x to password protect some layers in the TOC without having to recreate several mapbooks.  For example:
>  
> Catalog
> -Public Layers
> -Layers only visible to county workers
> -Layers only visible to the Highway Department
> -Layers only visible to the Assessor Department
> -Layers only for the City
>  
>  
> Thanks
>  
> Mark Volz
> GIS Specialist
>  
>  
> 
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
> 
> 
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120409/a21e30ba/attachment.html


More information about the Geomoose-users mailing list