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<mailto:j.van.bohee...@prv.gelderland.nl>, tel nr: 026 359 9727 Provincie Gelderland, I&A/GIC, Prinsenhof B, Markt 9, 6811 CG, Arnhem. tel nr: 026 359 94 30
Van: Jonathan Moules [mailto:j.mou...@hrwallingford.com] 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.k...@cubic.com] 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.mou...@hrwallingford.com] 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.k...@cubic.com] 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]<http://cts.cubic.com/> Victor Kirk Lead Developer Cubic Transportation Systems (ITMS) Ltd +44 1642 636894 cts.cubic.com<http://cts.cubic.com/> [NextCity]<http://www.youtube.com/watch?v=qhd6XYP2DBE&feature=related> [RSS]<http://cts.cubic.com/Publications/CubicBlog.aspx> [Facebook]<https://www.facebook.com/CubicTransportationSystems> [Twitter]<https://twitter.com/CubicTS> [LinkedIn]<http://www.linkedin.com/company/cubic> [YouTube]<http://www.youtube.com/user/CubicTS> 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<http://www.mailcontrol.com/>, a service from BlackSpider Technology Click here<https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==> 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 ________________________________ Disclaimer : http://www.gelderland.nl/?id=108550
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users