Hi Ali,

We have created the following implementations:

Created a Proxy Servlet (this handles the request from the user, provides the 
security & auditing mechanisms and also handles the DRM).

We handle the DRM in the proxy by finding out which layer the user has 
requested, then appending to the end an appropriate mask layer.  This layer 
would simply be a layer in geoserver which has the polygons & the username.

So the user would send LAYERS=TOPOGRPAHICAREA, the proxy would parse the LAYERS 
parameter, find out which mask layer is appropiate for the user requested 
layer, and append resulting in: LAYERS=TOPOGRAPHICAREA,OSMASTERMAPMASK.

We then append a filter, something like 
FILTER=()(<Filter><PropertyIsEqualTo><PropertyName>USERNAME</PropertyName><Literal>INFOTECH</Literal></PropertyIsEqualTo></Filter>)

As this is done in the proxy, it is seamless to the user.

The SLD associated with the masking layer is simply a polygon symbolizer.  The 
polygons in the masking table have to be created with holes - if not then you 
can probably create from a normal polygon using a XOR.

Cheers,
Steve

From: Ali Taha [mailto:[email protected]]
Sent: 07 June 2011 22:39
To: [email protected]
Subject: Re: [Geoserver-users] Image mask

Any ideas?

-----------
Dear All,

Is it possible to apply a mask on an image, meaning that, I need to show part 
of an image which is inside another vector layer (polygon)?

Thanks




________________________________
DISCLAIMER:

This email may contain confidential information and is intended only for the 
use of the specific individual(s) to which it is addressed. If you are not the 
intended recipient of this email, you are hereby notified that any unauthorized 
use, dissemination or copying of this email or the information contained in it 
or attached to it is strictly prohibited. If you received this message in 
error, please immediately notify the sender at Infotech or 
[email protected] and delete the original message.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to