Hi there,

I need to add a dynamic copyright text to an wms layer as data is provided
by multiple data providers.

For each wms request, a copyright will be added (ex bottom right) with the
name of the data providers of the viewed region (bbox).

I have a polygon layer in Oracle Spatial which contains the areas of data
and the name of the providers related to them. A simple spatial query using
the bounding box (wms_bbox) will return the names of the data providers to
display in the copyright.

The copyright will change on each pan and/or zoom according to the area
that's being viewed.

The dirtiest solution would be to add the polygon layer labeled with the
provider name filed and using SLD to displace labels at the bottom right. I
read that the labeling engine should be able to prevent overlapping of the
labels so it would therically work.

The other way would be to create a custom function. I'd get the bounding box
via wms_bbox, perform the spatial query to get the provider names and then
format the strings to be displayed. How would I place a string on the map ?
Maybe by creating a temporary geometry and use the formatted string as a
label ?

How would you handle this problem ?

Again the whole process is quite simple :

wms request --> call oracle spatial to get data providers name--> show those
providers on the map.

I hope my explanation is clear.

Thanks for your help.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Dynamic-Copyright-tp5332186.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to