[Users] geoext Printprovider bad request
Matt Priour
mpriour at kestrelcomputer.com
Wed Aug 24 22:18:56 CEST 2011
You can use gwc’s wms, just not as a single tile layer:
tileSize: new OpenLayers.Size(256,256)
is a _required_ config property of the layer(s) you are trying to print.
Your other option is to use an XYZ layer type with your gwc layers.
Matt Priour
Kestrel Computer Consulting
From: Ralph Dell
Sent: Wednesday, August 24, 2011 2:22 PM
To: users at geoext.org
Subject: [Users] geoext Printprovider bad request
I did not know if this list or the geoserver list would be a better forum for this question. I decided to start here.
After adding layers to my map from geowebcache and generating a pdf with the Printprovider the gwc layers were not showing up in the generated pdf.
My straight up wms layes etc, were printing fine as usual.
In my geoserver logs I found the following information that indicated a bad request.
2011-08-24 13:27:21,287 WARN [org.mapfish.print.PDFUtils] -
Server returned an error for http://gis.catawbacountync.gov/geoserver/gwc/service/wms?
BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&
map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&
LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913:
Error (status=400) while reading the image from http://gis.catawbacountync.gov/geoserver/gwc/service/wms?
BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&
map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&
LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913: Bad Request
2011-08-24 13:27:21,287 WARN [org.mapfish.print.PDFCustomBlocks] -
Error while adding a PDF elementjava.io.IOException:
Error (status=400) while reading the image from http://gis.catawbacountync.gov/geoserver/gwc/service/wms?
BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&
map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&
LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913: Bad Request
I did not know why it was a bad request but I was suspicious of the HEIGHT and WIDTH
Pasting the url into my browser confirmed that by returning the error
400: The requested tile dimensions 694x667 do not match those of the grid set (256x256)
http://gis.catawbacountync.gov/geoserver/gwc/service/wms?BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913
OK great. What can I do to resolve the issue? Can I use my gwc layers with the printProvider? Do I have deeper issues?
Ralph Dell
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110824/4fd548e1/attachment.htm
More information about the Users
mailing list