[Geoserver-users] watermarking

I’m running in to some issues with water marking - if I specify my watermark on the Layer/ Publish tab the GeoServer can see the image and correctly guesses the size and image type but nothing shows up in layer preview. If I set the same image in the global WMS settings page then it shows up in a single tile but when I switch to tiling it seems to only show up in the center tile of the meta tile set. This happens with both 2.4.3 and 2.5 beta but the only references I can find on line are http://jira.codehaus.org/browse/GEOS-3107 which claims to have fixed this problem some time ago.

Any ideas? I’d really like to only water mark a single layer (or layer group) but I’ll settle for a whole server if it watermarks all the tiles (I have to cover 10% of the displayed map so fixed tiles seems easiest).

cheers

Ian


Ian Turton

Hi Ian,
I have a transparent Polygon that covers the entire UK which has a style similar to a watermark. I then add that to a layergroup which has the one or two layers I want to watermark in it. This works quite well and means I don’t need to watermark all of my datasets.

Cheers,
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

···

On 18 February 2014 11:31, Ian Turton <ijturton@anonymised.com> wrote:

I’m running in to some issues with water marking - if I specify my watermark on the Layer/ Publish tab the GeoServer can see the image and correctly guesses the size and image type but nothing shows up in layer preview. If I set the same image in the global WMS settings page then it shows up in a single tile but when I switch to tiling it seems to only show up in the center tile of the meta tile set. This happens with both 2.4.3 and 2.5 beta but the only references I can find on line are http://jira.codehaus.org/browse/GEOS-3107 which claims to have fixed this problem some time ago.

Any ideas? I’d really like to only water mark a single layer (or layer group) but I’ll settle for a whole server if it watermarks all the tiles (I have to cover 10% of the displayed map so fixed tiles seems easiest).

cheers

Ian


Ian Turton


Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Tue, Feb 18, 2014 at 12:31 PM, Ian Turton <ijturton@anonymised.com> wrote:

I'm running in to some issues with water marking - if I specify my
watermark on the Layer/ Publish tab the GeoServer can see the image and
correctly guesses the size and image type but nothing shows up in layer
preview. If I set the same image in the global WMS settings page then it
shows up in a single tile but when I switch to tiling it seems to only show
up in the center tile of the meta tile set. This happens with both 2.4.3
and 2.5 beta but the only references I can find on line are
http://jira.codehaus.org/browse/GEOS-3107 which claims to have fixed this
problem some time ago.

Any ideas? I'd really like to only water mark a single layer (or layer
group) but I'll settle for a whole server if it watermarks all the tiles (I
have to cover 10% of the displayed map so fixed tiles seems easiest).

Don't believe we ever had a way to put watermark on every tile when using
meta-tiling.
And not sure it makes sense either, if you are seeding an external tile
cache it will make 4x4 or larger
requests regardless, and the slice it, giving you the same result as what
we have internally.

Maybe what you want is a way to repeat the watermak every x pixels in the
output image instead.

Cheers
Andrea

--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On 18 February 2014 11:42, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Tue, Feb 18, 2014 at 12:31 PM, Ian Turton <ijturton@anonymised.com> wrote:

I'm running in to some issues with water marking - if I specify my
watermark on the Layer/ Publish tab the GeoServer can see the image and
correctly guesses the size and image type but nothing shows up in layer
preview. If I set the same image in the global WMS settings page then it
shows up in a single tile but when I switch to tiling it seems to only show
up in the center tile of the meta tile set. This happens with both 2.4.3
and 2.5 beta but the only references I can find on line are
http://jira.codehaus.org/browse/GEOS-3107 which claims to have fixed
this problem some time ago.

Any ideas? I'd really like to only water mark a single layer (or layer
group) but I'll settle for a whole server if it watermarks all the tiles (I
have to cover 10% of the displayed map so fixed tiles seems easiest).

Don't believe we ever had a way to put watermark on every tile when using
meta-tiling.
And not sure it makes sense either, if you are seeding an external tile
cache it will make 4x4 or larger
requests regardless, and the slice it, giving you the same result as what
we have internally.

That does make sense (though the jira suggests otherwise) - So I guess I
probably do want a repeat option, I'll probably follow Jonathon's polygon
method for the time being.

Any idea why setting the water mark on the layer publish tab doesn't work?

Cheers

Ian

Actually it looks like once upon a time we (well you) did do this - http://grepcode.com/file/repo1.maven.org/maven2/org.geoserver/wms/1.7.0/org/vfny/geoserver/wms/responses/map/metatile/MetatileWatermarkPainter.java

Ian

···

On 18 February 2014 12:11, Ian Turton <ijturton@anonymised.com> wrote:


Ian Turton

On 18 February 2014 11:42, Andrea Aime <andrea.aime@anonymised.com> wrote:

That does make sense (though the jira suggests otherwise) - So I guess I probably do want a repeat option, I’ll probably follow Jonathon’s polygon method for the time being.

Any idea why setting the water mark on the layer publish tab doesn’t work?

Cheers

Ian

On Tue, Feb 18, 2014 at 12:31 PM, Ian Turton <ijturton@anonymised.com> wrote:

I’m running in to some issues with water marking - if I specify my watermark on the Layer/ Publish tab the GeoServer can see the image and correctly guesses the size and image type but nothing shows up in layer preview. If I set the same image in the global WMS settings page then it shows up in a single tile but when I switch to tiling it seems to only show up in the center tile of the meta tile set. This happens with both 2.4.3 and 2.5 beta but the only references I can find on line are http://jira.codehaus.org/browse/GEOS-3107 which claims to have fixed this problem some time ago.

Any ideas? I’d really like to only water mark a single layer (or layer group) but I’ll settle for a whole server if it watermarks all the tiles (I have to cover 10% of the displayed map so fixed tiles seems easiest).

Don’t believe we ever had a way to put watermark on every tile when using meta-tiling.
And not sure it makes sense either, if you are seeding an external tile cache it will make 4x4 or larger
requests regardless, and the slice it, giving you the same result as what we have internally.