[Geomoose-users] per user layers

Dan Little danlittle at yahoo.com
Mon Apr 9 14:40:05 EDT 2012


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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120409/2bce1ff3/attachment.html


More information about the Geomoose-users mailing list