All,

I'm having problems with GeoWebCache, I have a Leaflet.js web mapping site 
using Proj4Leaflet which consumes 2 WMS feeds from Geoserver (2.3.3), both are 
Layer Groups (one base mapping the other is data) and everything displays  fine 
when I'm not using GWC.

When I enable caching on the base mapping Layer Group I get two different 
results at different zoom levels:

1.       At zoom levels 5, 6, 8 & 9: I get "geowebcache-cache-result: HIT". 
However the images are misaligned/offset to the non-cached layers

2.       At zoom levels 7, 10, 11, 12, 13 & 14: I get 
"geowebcache-cache-result: MISS" and "geowebcache-miss-reason: request does not 
align to grid(s) 'Ordnance_Survey_National_Grid'".  Because the cache isn't 
used the layers align correctly


I have created a custom Gridset for this and it is British National Grid, 
EPSG:27700 (full specification at the foot of the email).

I'm really confused as the resolutions that I've defined in my web app exactly 
match the Gridset below and I can't work out if I've got a problem with the 
Gridset or something in the Leaflet code.

If anyone could shed any light on this matter or point me in the right 
direction to troubleshoot it I'd greatly appreciate it.  Please let me know if 
any further information is required.

Kind regards,

Rob



<gridSet>
  <name>Ordnance_Survey_National_Grid</name>
  <srs>
    <number>27700</number>
  </srs>
  <extent>
    <coords>
      <double>1346.748175220855</double>
      <double>7097.996956234318</double>
      <double>671066.5126380573</double>
      <double>1230202.1293903186</double>
    </coords>
  </extent>
  <alignTopLeft>false</alignTopLeft>
  <resolutions>
    <double>5600.0</double>
    <double>2800.0</double>
    <double>1400.0</double>
    <double>700.0</double>
    <double>350.0</double>
    <double>175.0</double>
    <double>84.0</double>
    <double>42.0</double>
    <double>21.0</double>
    <double>11.2</double>
    <double>5.6</double>
    <double>2.8</double>
    <double>1.4</double>
    <double>0.7</double>
    <double>0.35</double>
    <double>0.14</double>
    <double>0.07</double>
  </resolutions>
  <metersPerUnit>1.0</metersPerUnit>
  <pixelSize>2.8E-4</pixelSize>
  <scaleNames>
    <string>Ordnance Survey National Grid:0</string>
    <string>Ordnance Survey National Grid:1</string>
    <string>Ordnance Survey National Grid:2</string>
    <string>Ordnance Survey National Grid:3</string>
    <string>Ordnance Survey National Grid:4</string>
    <string>Ordnance Survey National Grid:5</string>
    <string>Ordnance Survey National Grid:6</string>
    <string>Ordnance Survey National Grid:7</string>
    <string>Ordnance Survey National Grid:8</string>
    <string>Ordnance Survey National Grid:9</string>
    <string>Ordnance Survey National Grid:10</string>
    <string>Ordnance Survey National Grid:11</string>
    <string>Ordnance Survey National Grid:12</string>
    <string>Ordnance Survey National Grid:13</string>
    <string>Ordnance Survey National Grid:14</string>
    <string>Ordnance Survey National Grid:15</string>
    <string>Ordnance Survey National Grid:16</string>
  </scaleNames>
  <tileHeight>256</tileHeight>
  <tileWidth>256</tileWidth>
  <yCoordinateFirst>false</yCoordinateFirst>
</gridSet>



DISCLAIMER: The information contained in this communication/message from 
[email protected] sent on Fri Nov  8 15:20:47 2013 is 
confidential. It is intended solely for the addressee(s) 
[email protected]

Access to this message by anyone else is unauthorised. If you are not the 
intended recipient, any disclosure, copying, or distribution of the message, or 
any action or omission taken by you in reliance on it, is prohibited and may be 
unlawful.
As a public body, Salford City Council may be required to disclose this email 
[or any response to it] under the Freedom of Information Act 2000, unless the 
information in it is covered by one of the exemptions in the Act.
Please immediately contact the sender, [email protected] if you 
have received this message in error.

For the full disclaimer please access http://www.salford.gov.uk/e-mail.  Thank 
you.
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to