<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hi,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Yep, that makes sense and I had obviously gathered this by testing.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">What I am interested in, is understanding </div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">...1.why/what is requesting this strange tile size. <span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 15px; ">625x458 is rather odd. GWC produces 256x256 Openlayers is also set to this
dimension.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 15px; ">and </span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 15px; ">...2. Why geoserver advertises TMS when It doesnīt load. </span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 15px; "><br></span></div><div style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 15px; ">http/maps.zgb.de/geoserver >right hand side as services > GWC
ERROR </span><span class="Apple-style-span" style="font-family: Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif; "><font class="Apple-style-span" size="2">400: Unable to find handler for service "tms"</font></span></div><div style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="font-family: Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif; "><font class="Apple-style-span" size="2"><br></font></span></div><div style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="font-family: Verdana, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif; "><font class="Apple-style-span" size="2">"</font></span><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 15px; ">That is, in essence, what you have to do programatically whenever you</span></div><span class="Apple-style-span" style="font-family: 'times new roman',
'new york', times, serif; font-size: 15px; ">want to print." --have no idea how I would go about doing this! will look into the geoext docs to see if there are any possibilities.</span><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">thanks anyway for helping and giving your time.</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">yours,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Rob<br></font><div style="font-family: arial, helvetica, sans-serif; "><span class="Apple-style-span" style="font-family: Verdana,
Arial, 'Bitstream Vera Sans', Helvetica, sans-serif; "><font class="Apple-style-span" size="2"><br></font></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span class="Apple-style-span" style="font-family: 'times new roman', 'new york', times, serif; font-size: 15px; "><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> Tobias Reinicke <ramotswa@gmail.com><br> <b><span style="font-weight: bold;">An:</span></b> Robert Buckley <robertdbuckley@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "users@openlayers.org" <users@openlayers.org> <br> <b><span style="font-weight:
bold;">Gesendet:</span></b> 11:27 Freitag, 25.November 2011<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [OpenLayers-Users] pdf export: why the request for tile dimensions of 625x458<br> </font> <br>Hi Robert,<br><br>So just a quick one;<br><br>the error gwc request that you sent initially:<br> <a href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913"
target="_blank">http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913</a><br>doesn't work obviously, as you established. What I was saying about<br>stripping out the gwc part is that if you replace<br> <a href="http://maps.zgb.de/geoserver/gwc/service/wms" target="_blank">http://maps.zgb.de/geoserver/gwc/service/wms</a>?<br>with<br><a href="http://maps.zgb.de/geoserver/zgb/wms" target="_blank">http://maps.zgb.de/geoserver/zgb/wms</a>?<br>you will get a request that works:<br><a
href="http://maps.zgb.de/geoserver/zgb/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913" target="_blank">http://maps.zgb.de/geoserver/zgb/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913</a><br><br>That is, in essence, what you have to do programatically whenever you<br>want to
print.<br><br>Does that make more sense?<br><br>Toby<br><br><br>On 24 November 2011 14:34, Toby Reinicke <<a ymailto="mailto:ramotswa@gmail.com" href="mailto:ramotswa@gmail.com">ramotswa@gmail.com</a>> wrote:<br>> Yes, printing is great fun!<br>> So the 'related geoserver' layer stuff means that you catch the print<br>> request before it is sent, and replace anything relating to gwc in it. I.e<br>> if you are getting tiles from gwc using a bbox, chances are you can just<br>> strip out the gwc part of the URL and send that request straight to the wms<br>> layer on geoserver and get back the same image (albeit much slower).<br>> That will get you any data that resides in geoserver (vectors and rasters<br>> both). However if you are trying to print user generated polygons / text<br>> that hasn't been committed to geoserver yet you're in a whole new ball<br>> game.<br>> Will have a play with your code over the next few
days and see what I can<br>> come up with.<br>> Toby<br>> On 24 Nov 2011, at 13:42, Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>> wrote:<br>><br>> ok thanks.<br>> If the solution is to server the layers as tms then iīm out of luck because<br>> TMS is not working in my installed version of geoserver I donīt understand<br>> what "redirecting the willed GWC<br>> layers to the related GeoServer layers before they are printed" means.!!?!<br>> I have tried to make a simple html print window in javscript, but now the<br>> problem is that the raster backgrounds only work in IE9 on Windows7 and on<br>> SP only the vector data can be printed!<br>> I neve knew that printing could be such a head ache!<br>> yours,<br>> Rob<br>> ________________________________<br>> Von: Tobias Reinicke <<a
ymailto="mailto:ramotswa@gmail.com" href="mailto:ramotswa@gmail.com">ramotswa@gmail.com</a>><br>> An: Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>><br>> Gesendet: 14:02 Donnerstag, 24.November 2011<br>> Betreff: Re: [OpenLayers-Users] pdf export: why the request for tile<br>> dimensions of 625x458<br>><br>> Hi Robert,<br>> So from that link the sentence that is most important is:<br>><br>> The solution is to use OpenLayers.Layer.TMS for the geowebcache layers<br>> rather than OpenLayer.Layer.WMS<br>><br>> So you're WMS layers needs to change to be a TMS layer, if that is<br>> acceptable to you. The other solution is in the next post:<br>> I also went into this problem few days ago. I tried using TMS layers but<br>> without success. The solution I pitched on was redirecting the willed GWC<br>> layers to the related
GeoServer layers before they are printed. It's not a<br>> pretty solution, but it works well! [1]<br>><br>><br>><br>> [1] <a href="http://www.mail-archive.com/users@geoext.org/msg01973.html" target="_blank">http://www.mail-archive.com/users@geoext.org/msg01973.html</a><br>><br>><br>><br>> Toby<br>><br>> On 24 November 2011 07:39, Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>> wrote:<br>>> Hi,<br>>> Thanks for the reply.<br>>> according to my research it is possible. gbrun manaed to get this working<br>>> with TMS services with the help of Matt Prior documented in the link<br>>> below.<br>>> The proof is in the online map here<br>>> <a href="http://gis.catawbacountync.gov/gwc/print_gwc.html" target="_blank">http://gis.catawbacountync.gov/gwc/print_gwc.html</a><br>>> <a
href="http://www.mail-archive.com/users@geoext.org/msg01973.html" target="_blank">http://www.mail-archive.com/users@geoext.org/msg01973.html</a><br>>><br>>> yours,<br>>> Rob<br>>><br>>><br>>> ________________________________<br>>> Von: Toby R <<a ymailto="mailto:ramotswa@gmail.com" href="mailto:ramotswa@gmail.com">ramotswa@gmail.com</a>><br>>> An: Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>><br>>> Cc: "<a ymailto="mailto:geoserver-users@lists.sourceforge.net" href="mailto:geoserver-users@lists.sourceforge.net">geoserver-users@lists.sourceforge.net</a>"<br>>> <<a ymailto="mailto:geoserver-users@lists.sourceforge.net" href="mailto:geoserver-users@lists.sourceforge.net">geoserver-users@lists.sourceforge.net</a>>; "<a ymailto="mailto:users@mapfish.org"
href="mailto:users@mapfish.org">users@mapfish.org</a>"<br>>> <<a ymailto="mailto:users@mapfish.org" href="mailto:users@mapfish.org">users@mapfish.org</a>>; "<a ymailto="mailto:users@geoext.org" href="mailto:users@geoext.org">users@geoext.org</a>" <<a ymailto="mailto:users@geoext.org" href="mailto:users@geoext.org">users@geoext.org</a>>;<br>>> "<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>" <<a ymailto="mailto:users@openlayers.org" href="mailto:users@openlayers.org">users@openlayers.org</a>><br>>> Gesendet: 8:25 Donnerstag, 24.November 2011<br>>> Betreff: Re: [OpenLayers-Users] pdf export: why the request for tile<br>>> dimensions of 625x458<br>>><br>>> Hi Robert,<br>>> This may not be entirely helpful however I don't think that mapfish<br>>> supports<br>>> printing from a tile cache. The way it works normally is that it
sends the<br>>> request straight to the wms server which can obviously respond to the size<br>>> it requires.<br>>> The reason you are getting that tile size is because that's the size of<br>>> the<br>>> window you are trying to print (I presume).<br>>> As a test, if you were to point your layer_topo straight to the wms does<br>>> printing work?<br>>><br>>> Toby<br>>><br>>><br>>> On 24 Nov 2011, at 06:53, Robert Buckley <<a ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>> wrote:<br>>><br>>><br>>> Hi,<br>>> Problem: I canīt print any tiles coming from geowebcache!<br>>> gridset: 900913<br>>> System: Linux Ubuntu 10.04 / tomcat6 / Geoserver 2.1.2<br>>> Javscript<br>>> // map<br>>> var map = new OpenLayers.Map("map", {<br>>> id:
'map',<br>>> projection: new OpenLayers.Projection("EPSG:900913"),<br>>> displayProjection: new OpenLayers.Projection("EPSG:4326"),<br>>> units: "m",<br>>> maxResolution: 156543.0339,<br>>> maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508,<br>>> 20037508.34),<br>>> numZoomLevels: 17,<br>>> controls: [new OpenLayers.Control.MouseDefaults(), new<br>>> OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition(),<br>>> new<br>>> OpenLayers.Control.ScaleLine({<br>>> geodesic: true<br>>> })]<br>>> });<br>>> // layer GWC<br>>> var layer_topo = new
OpenLayers.Layer.WMS("Topographischekarte",<br>>> "<a href="http://maps.zgb.de/geoserver/gwc/service/wms/" target="_blank">http://maps.zgb.de/geoserver/gwc/service/wms/</a>", {<br>>> layers: 'zgb:tk50',<br>>> projection: "EPSG:900913",<br>>> format: 'image/png',<br>>> transparent: true,<br>>> singleTile: false<br>>> }, {<br>>> 'buffer': 0,<br>>> 'opacity': 1,<br>>> 'isBaseLayer': true,<br>>> visibility: true<br>>> });<br>>> Geoserver log<br>>> 2011-11-24 07:39:54,199 ERROR [geowebcache.GeoWebCacheDispatcher] - The<br>>> requested tile dimensions 625x458 do not match those of the grid
set<br>>> (256x256) <a href="http://maps.zgb.de/geoserver/gwc/service/wms" target="_blank">http://maps.zgb.de/geoserver/gwc/service/wms</a><br>>> 2011-11-24 07:39:54,200 WARN [print.PDFUtils] - Server returned an error<br>>> for<br>>><br>>> <a href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913"
target="_blank">http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913</a>:<br>>> Error (status=400) while reading the image from<br>>><br>>> <a
href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913" target="_blank">http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1176787.0%2C6892762.5%2C1181754.1%2C6899536.0&HEIGHT=625&WIDTH=458&map_resolution=75&SERVICE=WMS&REQUEST=GetMap&STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true&VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dpi%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913</a>:<br>>> Bad Request<br>>> pdf error attatchment<br>>>
java.io.IOException: Error (status=400) while reading the image from<br>>><br>>> <a href="http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.0" target="_blank">http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.0</a><br>>> &HEIGHT=625&WIDTH=458<br>>> &map_resolution=75&SERVICE=WMS&REQUEST=GetMap<br>>> &STYLES=&TILESIZE=%7B%22w%22%3A256%2C%22h%22%3A256%7D&TRANSPARENT=true<br>>><br>>> &VERSION=1.1.1&FORMAT=image%2Fpng&PROJECTION=EPSG%3A900913&format_options=dp<br>>> i%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913: Bad Request<br>>><br>>><br>>><br>>> Can anyone tell me why the mapfish print is requesting tile dimensions of<br>>> 625x458?<br>>><br>>><br>>> Yours with thanks,<br>>>
Rob<br>>><br>>> _______________________________________________<br>>> Users mailing list<br>>> <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>>><br>>><br>>><br>>> _______________________________________________<br>>> Users mailing list<br>>> <a ymailto="mailto:Users@lists.osgeo.org" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>>><br>>><br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a ymailto="mailto:Users@lists.osgeo.org"
href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>><br><br><br> </div> </div> </div></div></body></html>