[OpenLayers-Users] pdf export: why the request for tile dimensions of 625x458

Robert Buckley robertdbuckley at yahoo.com
Thu Nov 24 02:33:19 EST 2011


Sorry...I wasn´t sure that all the forums are connected. 

I didn´t realize all openlayers people are also geoext users or geoserver users subscribers

yours,

Rob


________________________________
 Von: Eric Lemoine <eric.lemoine at camptocamp.com>
An: Robert Buckley <robertdbuckley at yahoo.com> 
Gesendet: 8:09 Donnerstag, 24.November 2011
Betreff: Re: [OpenLayers-Users] pdf export: why the request for tile dimensions of 625x458
 

Hi

Massive cross-posting is not appropriate and won't increase your chances to get answers. I'd recommend stopping that.

On Thursday, November 24, 2011, Robert Buckley <robertdbuckley at yahoo.com> wrote:
>
> Hi,
> Problem: I can´t print any tiles coming from geowebcache!
> gridset: 900913
> System: Linux Ubuntu 10.04 / tomcat6 / Geoserver 2.1.2 
> Javscript
> // map
> var map = new OpenLayers.Map("map", {
>         id: 'map',
>         projection: new OpenLayers.Projection("EPSG:900913"),
>         displayProjection: new OpenLayers.Projection("EPSG:4326"),
>         units: "m",
>         maxResolution: 156543.0339,
>         maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34),
>         numZoomLevels: 17,
>         controls: [new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.ScaleLine({
>             geodesic: true
>         })]
>     });
> // layer GWC
> var layer_topo = new OpenLayers.Layer.WMS("Topographischekarte", "http://maps.zgb.de/geoserver/gwc/service/wms/", {
>         layers: 'zgb:tk50',
>         projection: "EPSG:900913",
>         format: 'image/png',
>         transparent: true,
>         singleTile: false
>     }, {
>         'buffer': 0,
>         'opacity': 1,
>         'isBaseLayer': true,
>         visibility: true
>     });
> Geoserver log
> 2011-11-24 07:39:54,199 ERROR [geowebcache.GeoWebCacheDispatcher] - The requested tile dimensions 625x458 do not match those of the grid set (256x256) http://maps.zgb.de/geoserver/gwc/service/wms
> 2011-11-24 07:39:54,200 WARN [print.PDFUtils] - Server returned an error for 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: Error (status=400) while reading the image from 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: Bad Request
> pdf error attatchment
> java.io.IOException: Error (status=400) while reading the image from http://maps.zgb.de/geoserver/gwc/service/wms?BBOX=1091694.4%2C6741760.5%2C1250642.0%2C6958507.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=dp
> i%3A75&LAYERS=zgb%3Atk50&SINGLETILE=false&SRS=EPSG%3A900913: Bad Request
>
>
>
> Can anyone tell me why the mapfish print is requesting tile dimensions  of 625x458?
>
>
> Yours with thanks,
> Rob
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111124/0a18d75f/attachment-0001.html


More information about the Users mailing list