[Geoserver-users] Watermarking

Hi,

I’m currently working with a dataset whose licensing requires a watermark. The watermark is to cover 10% of the rendered image. This data only required when zoomed right in. I couldn’t find a way of doing this in Geoserver so I’ve made a modification to the watermarking to accept a zoom level and a ratio of the tile to resize the watermark logo to.

The dataset in question is Ordinance Survey’s Master Map, so I’m sure other people must face similar watermark restrictions.

Is there a way of doing the above with Geoserver and if not, is there a better way of implementing my changes as a plugin rather than the core? Lastly, if the answer to both of these is no, would such a change be of enough interest to warrant pursuing incorporation into Geoserver’s code base.

Kind Regards,

Vic

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

Cubic Transportation Systems

Victor Kirk

Lead Developer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cts.cubic.com

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Best Bank Card Ticketing Scheme



MasterCard Transport Ticketing Awards 2015

Joint Winner, Most Innovative Transport Project
London Transport Awards 2015

Winner, 2014 CONNECT Awards Most Innovative New Product
Communications & IT category for NextBus Fleet Management Application

Winner, 2014 Australian Smart Infrastructure Award, Opal Card

Co-Winner, ITS-NY Project of the Year, MTA Bus Time****®

Hi Vic,

I know this has come up before, but a quick search isn’t finding it.

Watermarking is fairly easy. The way I did it if memory serves;

  • Create a shapefile covering the entirety of the UK.

  • Style the shapefile with the watermark so that only the watermark is visible and somewhat transparent (20%?).

  • Use the watermark as the “top” layer in a layergroup with any of your OS datasets.

It works quite well and gets included in all outputs, WMTS, WMS, cached or otherwise.

You can see it in action here when you zoom in to 1:5k or closer.

Cheers,

Jonathan

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Friday, June 12, 2015 11:02 AM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: [Geoserver-users] Watermarking

Hi,

I’m currently working with a dataset whose licensing requires a watermark. The watermark is to cover 10% of the rendered image. This data only required when zoomed right in. I couldn’t find a way of doing this in Geoserver so I’ve made a modification to the watermarking to accept a zoom level and a ratio of the tile to resize the watermark logo to.

The dataset in question is Ordinance Survey’s Master Map, so I’m sure other people must face similar watermark restrictions.

Is there a way of doing the above with Geoserver and if not, is there a better way of implementing my changes as a plugin rather than the core? Lastly, if the answer to both of these is no, would such a change be of enough interest to warrant pursuing incorporation into Geoserver’s code base.

Kind Regards,

Vic

Cubic Transportation Systems

Victor Kirk

Lead Developer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cts.cubic.com

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Best Bank Card Ticketing Scheme



MasterCard Transport Ticketing Awards 2015

Joint Winner, Most Innovative Transport Project
London Transport Awards 2015

Winner, 2014 CONNECT Awards Most Innovative New Product
Communications & IT category for NextBus Fleet Management Application

Winner, 2014 Australian Smart Infrastructure Award, Opal Card

Co-Winner, ITS-NY Project of the Year, MTA Bus Time****®


This document is intended for, and should only be read by, those persons to whom it is addressed. Its contents are confidential and if you have received this message in error, please delete it. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without our prior written consent is strictly prohibited.

Any views expressed in this message are those of the individual sender, and do not necessarily represent the position of Cubic Transportation Systems (ITMS) Limited (‘CTS’). Furthermore CTS does not authorise or use e-mail for official contractual correspondence. Nothing received in e-mail has any contractual validity.

CTSL and each legal entity in Cubic Corporation reserve the right to monitor all e-mail communications through its networks.

Registered Office:
Cubic Transportation Systems Ltd
AFC House
Honeycrock Lane
Salfords
Surrey
RH1 5LA
United Kingdom

Registered in England under number 8498086


This message has been scanned for viruses by MailControl, a service from BlackSpider Technology

Click here to report this email as spam.

Sorry, I completely forgot to thank you for the reply, it came in just as I was leaving for a few days and I’ve only just got back to looking at this issue.

I’ve tried what you suggested but my interpretation of the licensing requires each tile requires a watermark. The images rendered with this method only contain part of the watermark, or sometime none if the tile size is small enough.

I did look at using a layout (thinking I could add the layout parameter at the proxy server) but I could not see anyway of dynamically setting the size of the logo so it filled 10% of the tile.

Are there other tricks I could use? To summarise the my goal, render a graphic that fills a percentage of the requested tile at a particular zoom level.

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

From: Jonathan Moules [mailto:J.Moules@…6706…]
Sent: 18 June 2015 17:03
To: Kirk, Victor; ‘geoserver-users@lists.sourceforge.net’
Subject: RE: Watermarking

Hi Vic,

I know this has come up before, but a quick search isn’t finding it.

Watermarking is fairly easy. The way I did it if memory serves;

  • Create a shapefile covering the entirety of the UK.

  • Style the shapefile with the watermark so that only the watermark is visible and somewhat transparent (20%?).

  • Use the watermark as the “top” layer in a layergroup with any of your OS datasets.

It works quite well and gets included in all outputs, WMTS, WMS, cached or otherwise.

You can see it in action here when you zoom in to 1:5k or closer.

Cheers,

Jonathan

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Friday, June 12, 2015 11:02 AM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: [Geoserver-users] Watermarking

Hi,

I’m currently working with a dataset whose licensing requires a watermark. The watermark is to cover 10% of the rendered image. This data only required when zoomed right in. I couldn’t find a way of doing this in Geoserver so I’ve made a modification to the watermarking to accept a zoom level and a ratio of the tile to resize the watermark logo to.

The dataset in question is Ordinance Survey’s Master Map, so I’m sure other people must face similar watermark restrictions.

Is there a way of doing the above with Geoserver and if not, is there a better way of implementing my changes as a plugin rather than the core? Lastly, if the answer to both of these is no, would such a change be of enough interest to warrant pursuing incorporation into Geoserver’s code base.

Kind Regards,

Vic

Cubic Transportation Systems

Victor Kirk

Lead Developer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cts.cubic.com

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Best Bank Card Ticketing Scheme



MasterCard Transport Ticketing Awards 2015

Joint Winner, Most Innovative Transport Project
London Transport Awards 2015

Winner, 2014 CONNECT Awards Most Innovative New Product
Communications & IT category for NextBus Fleet Management Application

Winner, 2014 Australian Smart Infrastructure Award, Opal Card

Co-Winner, ITS-NY Project of the Year, MTA Bus Time****®


This document is intended for, and should only be read by, those persons to whom it is addressed. Its contents are confidential and if you have received this message in error, please delete it. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without our prior written consent is strictly prohibited.

Any views expressed in this message are those of the individual sender, and do not necessarily represent the position of Cubic Transportation Systems (ITMS) Limited (‘CTS’). Furthermore CTS does not authorise or use e-mail for official contractual correspondence. Nothing received in e-mail has any contractual validity.

CTSL and each legal entity in Cubic Corporation reserve the right to monitor all e-mail communications through its networks.

Registered Office:
Cubic Transportation Systems Ltd
AFC House
Honeycrock Lane
Salfords
Surrey
RH1 5LA
United Kingdom

Registered in England under number 8498086


This message has been scanned for viruses by MailControl, a service from BlackSpider Technology

Click here to report this email as spam.


HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099


Hi Vic,

No problem, you’re quite welcome.

However, while the OS have their faults with regards to overzealous licensing requirements, generally they don’t seem to care if it actually is every tile. Certainly the site we created we made them aware of (they even used it as a case study!) and we used the method as below and it probably doesn’t cover every tile.

Oh yes, be sure to set a max scale so it only appears on OS MasterMap and not all of the other products in your zoom stack.

You can see it in action here (zoom to 1:5000 or closer): http://maps.warwickshire.gov.uk/

Cheers,

Jonathan

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Tuesday, August 11, 2015 4:16 PM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: Re: [Geoserver-users] Watermarking

Sorry, I completely forgot to thank you for the reply, it came in just as I was leaving for a few days and I’ve only just got back to looking at this issue.

I’ve tried what you suggested but my interpretation of the licensing requires each tile requires a watermark. The images rendered with this method only contain part of the watermark, or sometime none if the tile size is small enough.

I did look at using a layout (thinking I could add the layout parameter at the proxy server) but I could not see anyway of dynamically setting the size of the logo so it filled 10% of the tile.

Are there other tricks I could use? To summarise the my goal, render a graphic that fills a percentage of the requested tile at a particular zoom level.

From: Jonathan Moules [mailto:J.Moules@…6706…]
Sent: 18 June 2015 17:03
To: Kirk, Victor; ‘geoserver-users@lists.sourceforge.net’
Subject: RE: Watermarking

Hi Vic,

I know this has come up before, but a quick search isn’t finding it.

Watermarking is fairly easy. The way I did it if memory serves;

  • Create a shapefile covering the entirety of the UK.

  • Style the shapefile with the watermark so that only the watermark is visible and somewhat transparent (20%?).

  • Use the watermark as the “top” layer in a layergroup with any of your OS datasets.

It works quite well and gets included in all outputs, WMTS, WMS, cached or otherwise.

You can see it in action here when you zoom in to 1:5k or closer.

Cheers,

Jonathan

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Friday, June 12, 2015 11:02 AM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: [Geoserver-users] Watermarking

Hi,

I’m currently working with a dataset whose licensing requires a watermark. The watermark is to cover 10% of the rendered image. This data only required when zoomed right in. I couldn’t find a way of doing this in Geoserver so I’ve made a modification to the watermarking to accept a zoom level and a ratio of the tile to resize the watermark logo to.

The dataset in question is Ordinance Survey’s Master Map, so I’m sure other people must face similar watermark restrictions.

Is there a way of doing the above with Geoserver and if not, is there a better way of implementing my changes as a plugin rather than the core? Lastly, if the answer to both of these is no, would such a change be of enough interest to warrant pursuing incorporation into Geoserver’s code base.

Kind Regards,

Vic

Cubic Transportation Systems

Victor Kirk

Lead Developer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cts.cubic.com

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Best Bank Card Ticketing Scheme



MasterCard Transport Ticketing Awards 2015

Joint Winner, Most Innovative Transport Project
London Transport Awards 2015

Winner, 2014 CONNECT Awards Most Innovative New Product
Communications & IT category for NextBus Fleet Management Application

Winner, 2014 Australian Smart Infrastructure Award, Opal Card

Co-Winner, ITS-NY Project of the Year, MTA Bus Time****®


This document is intended for, and should only be read by, those persons to whom it is addressed. Its contents are confidential and if you have received this message in error, please delete it. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without our prior written consent is strictly prohibited.

Any views expressed in this message are those of the individual sender, and do not necessarily represent the position of Cubic Transportation Systems (ITMS) Limited (‘CTS’). Furthermore CTS does not authorise or use e-mail for official contractual correspondence. Nothing received in e-mail has any contractual validity.

CTSL and each legal entity in Cubic Corporation reserve the right to monitor all e-mail communications through its networks.

Registered Office:
Cubic Transportation Systems Ltd
AFC House
Honeycrock Lane
Salfords
Surrey
RH1 5LA
United Kingdom

Registered in England under number 8498086


This message has been scanned for viruses by MailControl, a service from BlackSpider Technology

Click here to report this email as spam.


HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099


Hi Victor,

Its a bit of work but you can make the solution by Jonathan work by creating multiple shapefiles where each shapefile has a shape (watermark) in each tile right bottom. Then set de scale factor for each shapefile according to your tiling and follow jonathans solution.

Hope I made some sense in my terrible English >.<

cheers,
Jaap van Boheemen

Adviseur GEO, Provincie Gelderland, E-mail: Jaap van Boheemen, tel nr: 026 359 9727
Provincie Gelderland, I&A/GIC, Prinsenhof B, Markt 9, 6811 CG, Arnhem. tel nr: 026 359 94 30

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

Van: Jonathan Moules [mailto:J.Moules@…6706…]
Verzonden: woensdag 12 augustus 2015 17:25
Aan: ‘Kirk, Victor’; ‘geoserver-users@lists.sourceforge.net’
Onderwerp: Re: [Geoserver-users] Watermarking

Hi Vic,

No problem, you’re quite welcome.

However, while the OS have their faults with regards to overzealous licensing requirements, generally they don’t seem to care if it actually is every tile. Certainly the site we created we made them aware of (they even used it as a case study!) and we used the method as below and it probably doesn’t cover every tile.

Oh yes, be sure to set a max scale so it only appears on OS MasterMap and not all of the other products in your zoom stack.

You can see it in action here (zoom to 1:5000 or closer): http://maps.warwickshire.gov.uk/

Cheers,

Jonathan

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Tuesday, August 11, 2015 4:16 PM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: Re: [Geoserver-users] Watermarking

Sorry, I completely forgot to thank you for the reply, it came in just as I was leaving for a few days and I’ve only just got back to looking at this issue.

I’ve tried what you suggested but my interpretation of the licensing requires each tile requires a watermark. The images rendered with this method only contain part of the watermark, or sometime none if the tile size is small enough.

I did look at using a layout (thinking I could add the layout parameter at the proxy server) but I could not see anyway of dynamically setting the size of the logo so it filled 10% of the tile.

Are there other tricks I could use? To summarise the my goal, render a graphic that fills a percentage of the requested tile at a particular zoom level.

From: Jonathan Moules [mailto:J.Moules@…6706…]
Sent: 18 June 2015 17:03
To: Kirk, Victor; ‘geoserver-users@lists.sourceforge.net’
Subject: RE: Watermarking

Hi Vic,

I know this has come up before, but a quick search isn’t finding it.

Watermarking is fairly easy. The way I did it if memory serves;

  • Create a shapefile covering the entirety of the UK.

  • Style the shapefile with the watermark so that only the watermark is visible and somewhat transparent (20%?).

  • Use the watermark as the “top” layer in a layergroup with any of your OS datasets.

It works quite well and gets included in all outputs, WMTS, WMS, cached or otherwise.

You can see it in action here when you zoom in to 1:5k or closer.

Cheers,

Jonathan

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Friday, June 12, 2015 11:02 AM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: [Geoserver-users] Watermarking

Hi,

I’m currently working with a dataset whose licensing requires a watermark. The watermark is to cover 10% of the rendered image. This data only required when zoomed right in. I couldn’t find a way of doing this in Geoserver so I’ve made a modification to the watermarking to accept a zoom level and a ratio of the tile to resize the watermark logo to.

The dataset in question is Ordinance Survey’s Master Map, so I’m sure other people must face similar watermark restrictions.

Is there a way of doing the above with Geoserver and if not, is there a better way of implementing my changes as a plugin rather than the core? Lastly, if the answer to both of these is no, would such a change be of enough interest to warrant pursuing incorporation into Geoserver’s code base.

Kind Regards,

Vic

Cubic Transportation Systems

Victor Kirk

Lead Developer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cts.cubic.com

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Best Bank Card Ticketing Scheme



MasterCard Transport Ticketing Awards 2015

Joint Winner, Most Innovative Transport Project
London Transport Awards 2015

Winner, 2014 CONNECT Awards Most Innovative New Product
Communications & IT category for NextBus Fleet Management Application

Winner, 2014 Australian Smart Infrastructure Award, Opal Card

Co-Winner, ITS-NY Project of the Year, MTA Bus Time****®


This document is intended for, and should only be read by, those persons to whom it is addressed. Its contents are confidential and if you have received this message in error, please delete it. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without our prior written consent is strictly prohibited.

Any views expressed in this message are those of the individual sender, and do not necessarily represent the position of Cubic Transportation Systems (ITMS) Limited (‘CTS’). Furthermore CTS does not authorise or use e-mail for official contractual correspondence. Nothing received in e-mail has any contractual validity.

CTSL and each legal entity in Cubic Corporation reserve the right to monitor all e-mail communications through its networks.

Registered Office:
Cubic Transportation Systems Ltd
AFC House
Honeycrock Lane
Salfords
Surrey
RH1 5LA
United Kingdom

Registered in England under number 8498086


This message has been scanned for viruses by MailControl, a service from BlackSpider Technology

Click here to report this email as spam.


HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099



HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099


On Tue, Aug 11, 2015 at 5:15 PM, Kirk, Victor <VICTOR.KIRK@anonymised.com> wrote:

Are there other tricks I could use? To summarise the my goal, render a
graphic that fills a percentage of the requested tile at a particular zoom
level.

Sponsoring the development of the functionality you need would be a "nice
trick" :wink:
See the "commercial support" page at geoserver.org

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V 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

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

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

Heading offtopic from GeoServer here, but, looking at the notes from the PSMA user groups in March, it seems they’ve updated the PSMA license to not require watermarking:

“Watermarking

12.1.2 (b) For the avoidance of doubt, no

watermarking is required where the Licensee

makes Licensed Data available via electronic

documents (e.g. a pdf), static internet image (i.e.

a ‘read only’ raster format image which cannot

be edited, manipulated, interrogated, geo

image001.png

image002.png

image003.png

image004.png

image005.png

image006.png

image007.png

···

From: Jonathan Moules [mailto:J.Moules@…6706…]
Sent: Wednesday, August 12, 2015 4:25 PM
To: ‘Kirk, Victor’; ‘geoserver-users@lists.sourceforge.net’
Subject: Re: [Geoserver-users] Watermarking

Hi Vic,

No problem, you’re quite welcome.

However, while the OS have their faults with regards to overzealous licensing requirements, generally they don’t seem to care if it actually is every tile. Certainly the site we created we made them aware of (they even used it as a case study!) and we used the method as below and it probably doesn’t cover every tile.

Oh yes, be sure to set a max scale so it only appears on OS MasterMap and not all of the other products in your zoom stack.

You can see it in action here (zoom to 1:5000 or closer): http://maps.warwickshire.gov.uk/

Cheers,

Jonathan

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Tuesday, August 11, 2015 4:16 PM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: Re: [Geoserver-users] Watermarking

Sorry, I completely forgot to thank you for the reply, it came in just as I was leaving for a few days and I’ve only just got back to looking at this issue.

I’ve tried what you suggested but my interpretation of the licensing requires each tile requires a watermark. The images rendered with this method only contain part of the watermark, or sometime none if the tile size is small enough.

I did look at using a layout (thinking I could add the layout parameter at the proxy server) but I could not see anyway of dynamically setting the size of the logo so it filled 10% of the tile.

Are there other tricks I could use? To summarise the my goal, render a graphic that fills a percentage of the requested tile at a particular zoom level.

From: Jonathan Moules [mailto:J.Moules@…6706…]
Sent: 18 June 2015 17:03
To: Kirk, Victor; ‘geoserver-users@lists.sourceforge.net’
Subject: RE: Watermarking

Hi Vic,

I know this has come up before, but a quick search isn’t finding it.

Watermarking is fairly easy. The way I did it if memory serves;

  • Create a shapefile covering the entirety of the UK.

  • Style the shapefile with the watermark so that only the watermark is visible and somewhat transparent (20%?).

  • Use the watermark as the “top” layer in a layergroup with any of your OS datasets.

It works quite well and gets included in all outputs, WMTS, WMS, cached or otherwise.

You can see it in action here when you zoom in to 1:5k or closer.

Cheers,

Jonathan

From: Kirk, Victor [mailto:VICTOR.KIRK@…7093…]
Sent: Friday, June 12, 2015 11:02 AM
To: ‘geoserver-users@lists.sourceforge.net’
Subject: [Geoserver-users] Watermarking

Hi,

I’m currently working with a dataset whose licensing requires a watermark. The watermark is to cover 10% of the rendered image. This data only required when zoomed right in. I couldn’t find a way of doing this in Geoserver so I’ve made a modification to the watermarking to accept a zoom level and a ratio of the tile to resize the watermark logo to.

The dataset in question is Ordinance Survey’s Master Map, so I’m sure other people must face similar watermark restrictions.

Is there a way of doing the above with Geoserver and if not, is there a better way of implementing my changes as a plugin rather than the core? Lastly, if the answer to both of these is no, would such a change be of enough interest to warrant pursuing incorporation into Geoserver’s code base.

Kind Regards,

Vic

Cubic Transportation Systems

Victor Kirk

Lead Developer

Cubic Transportation Systems (ITMS) Ltd

+44 1642 636894

cts.cubic.com

NextCity

RSS

Facebook

Twitter

LinkedIn

YouTube



Joint Winner, Best Bank Card Ticketing Scheme



MasterCard Transport Ticketing Awards 2015

Joint Winner, Most Innovative Transport Project
London Transport Awards 2015

Winner, 2014 CONNECT Awards Most Innovative New Product
Communications & IT category for NextBus Fleet Management Application

Winner, 2014 Australian Smart Infrastructure Award, Opal Card

Co-Winner, ITS-NY Project of the Year, MTA Bus Time****®


This document is intended for, and should only be read by, those persons to whom it is addressed. Its contents are confidential and if you have received this message in error, please delete it. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without our prior written consent is strictly prohibited.

Any views expressed in this message are those of the individual sender, and do not necessarily represent the position of Cubic Transportation Systems (ITMS) Limited (‘CTS’). Furthermore CTS does not authorise or use e-mail for official contractual correspondence. Nothing received in e-mail has any contractual validity.

CTSL and each legal entity in Cubic Corporation reserve the right to monitor all e-mail communications through its networks.

Registered Office:
Cubic Transportation Systems Ltd
AFC House
Honeycrock Lane
Salfords
Surrey
RH1 5LA
United Kingdom

Registered in England under number 8498086


This message has been scanned for viruses by MailControl, a service from BlackSpider Technology

Click here to report this email as spam.


HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099



HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
If you have received this message in error please advise us immediately and destroy all copies of it.

HR Wallingford Limited
Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
Registered in England No. 02562099


I’m a java developer primarily and I have made the required changes to my geoserver instance to support what I need, but I added them to the core geoserver watermarking code to take a ratio of the tile size and a zoom level to toggle the watermark on at.

It works well and does the job, my concern was maintaining a separate branch of geoserver. Is this of enough interest to others to include in geoserver? I am however hoping to find the time to turn my code into a plugin rather than having to modify geoserver’s core.

BTW, thanks to everyone for their help and comments.

Kind Regards, Vic

···

On Tue, Aug 11, 2015 at 5:15 PM, Kirk, Victor <VICTOR.KIRK@…7093…> wrote:

Are there other tricks I could use? To summarise the my goal, render a graphic that fills a percentage of the requested tile at a particular zoom level.

Sponsoring the development of the functionality you need would be a “nice trick” :wink:

See the “commercial support” page at geoserver.org

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/it488V 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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.