Ticket #58 (closed task: no longer relevant)

Opened 7 weeks ago

Last modified 7 weeks ago

WMS query gets error 400

Reported by: Eddy Owned by: arneke
Priority: normal Milestone:
Component: core Version:
Keywords: Cc:

Description

I'm using GeoServer 1.7.0 with GeoWebCache plugin. I set port 8090 for GeoServer, added

<context-param>

<param-name>GEOSERVER_WMS_URL</param-name>
<param-value>http://localhost:8090/geoserver/wms?request=GetCapabilities</param-value>

</context-param>

in the web.xml. The demo url of GeoWebCache works:

http://localhost:8090/geoserver/gwc/demo

But when I tried WMS query doesn't work:

http://localhost:8090/geoserver/gwc/service/wms?bbox=-127.61950064999999,23.7351786,-64.08177035,50.592523400000005&styles=&Format=image/png&request=GetMap&version=1.1.1&layers=topp:states&width=1024&height=1024&srs=EPSG:4326

The IE returned the error message:

400: The bounds resulted in a resolution of 0.24819425898437497 which does not match any of the available ones [0.703125, 0.3515625, 0.17578125, 0.087890625, 0.0439453125, 0.02197265625, 0.010986328125, 0.0054931640625, 0.00274658203125, 0.001373291015625, 6.866455078125E-4, 3.4332275390625E-4, 1.71661376953125E-4, 8.58306884765625E-5, 4.291534423828125E-5, 2.1457672119140625E-5, 1.0728836059570312E-5, 5.364418029785156E-6, 2.682209014892578E-6, 1.341104507446289E-6, 6.705522537231445E-7, 3.3527612686157227E-7, 1.6763806343078613E-7, 8.381903171539307E-8, 4.190951585769653E-8, 2.0954757928848267E-8, 1.0477378964424133E-8, 5.238689482212067E-9, 2.6193447411060333E-9, 1.3096723705530167E-9, 6.548361852765083E-10]

Do you have any idea to fix it? Thanks.

Change History

Changed 7 weeks ago by arneke

  • priority changed from major to normal
  • status changed from new to closed
  • resolution set to no longer relevant
  • type changed from defect to task

Hi, please use the geowebcache-user mailinglist for questions that are not bugs.

Caching tiles means that the requests from your client must also conform to those tiles, see http://wiki.osgeo.org/wiki/WMS_Tiling_Client_Recommendation

The problem above is that you are requesting 1024x1024 images, not the 256x256 that are stored by geowebcache.

If you want to just cache arbitrary images you should use an HTTP level cache, like Squid or Varnish Cache.

Note: See TracTickets for help on using tickets.